It is currently March 29th, 2024, 1:24 am

Help with IfMatch=^$

Get help with installing and using Rainmeter.
User avatar
Mirage
Posts: 23
Joined: September 11th, 2012, 3:36 am

Help with IfMatch=^$

Post by Mirage »

Good evening all,
Benn trying to figure out what the expression IfMatch=^$ actually means? I can't seen to find the answer anywhere.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with IfMatch=^$

Post by jsmorley »

Mirage wrote: January 23rd, 2020, 12:46 am Good evening all,
Benn trying to figure out what the expression IfMatch=^$ actually means? I can't seen to find the answer anywhere.
What it means is ^ start of string, followed immediately by $ end of string. In other words, if the string is empty it matches.

https://www.rexegg.com/regex-quickstart.html
User avatar
Mirage
Posts: 23
Joined: September 11th, 2012, 3:36 am

Re: Help with IfMatch=^$

Post by Mirage »

Ah, thank you so much. Now the way it was used makes more sense. It was used to show/hide a pair of meters and the result was always wrong. So with the little bit of info you just gave me I can set things right. Thanks again.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with IfMatch=^$

Post by jsmorley »

Mirage wrote: January 23rd, 2020, 12:57 am Ah, thank you so much. Now the way it was used makes more sense. It was used to show/hide a pair of meters and the result was always wrong. So with the little bit of info you just gave me I can set things right. Thanks again.
Glad to help.