Regex101

47 views
Skip to first unread message

gordon....@gmail.com

unread,
Jun 21, 2025, 10:36:36 AM6/21/25
to Tasker
So I have a statement  

hgfhg,Master Bedroom,,,OFF,gftry 

or
fdgfh,Master Bedroom,,,ON,ghrghgf

I go to regex101.com and verify that my regex statement

(Master Bedroom,\S,\S,OFF) 

is correct. I then copy and paste it into the match regex in tasker if function. 

%LightStatus matches regex (Master Bedroom,\S,\S,OFF) 

and it fails. What am I doing wrong?

Allen Newton

unread,
Jun 21, 2025, 8:26:45 PM6/21/25
to Tasker
\S (uppercase) means "any character that is NOT whitespace".  If you want something that matches whitespace, try \s (lowercase)

But for a more complete answer, can you share an example actual value that %LightStatus might have (with sensitive parts obfuscated, which I think you're already done)?
Reply all
Reply to author
Forward
0 new messages