It is currently February 19th, 2020, 2:51 pm

Help with IfMatch=^$

Get help with installing and using Rainmeter.
Mirage
Posts: 13
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: 20250
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
Mirage
Posts: 13
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: 20250
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.