Detect a string within an SMS

36 views
Skip to first unread message

Bob

unread,
Jan 19, 2011, 8:30:57 PM1/19/11
to Tasker
I want to detect if a certain string exists somewhere within a
received SMS. I looked at the different Variable commands, but
nothing stood out. Any ideas? Thanks!

Pent

unread,
Jan 20, 2011, 4:40:28 AM1/20/11
to Tasker
> I want to detect if a certain string exists somewhere within a
> received SMS.  I looked at the different Variable commands, but
> nothing stood out.  Any ideas?  Thanks!

In the content part of the Received Text event, use

*STRINGI'MLOOKINGFOR*

Or *%VARIABLE* if you like.

Pent

Rudolf

unread,
Jan 20, 2011, 4:40:45 AM1/20/11
to Tasker
How about:

Matching the SMS Body with some string?

%SMSRB matches with *magicword*

Bob

unread,
Jan 22, 2011, 11:33:30 AM1/22/11
to Tasker
Thanks!

I had not seen the Pattern Matching section of the User's Manual.
Maybe I should read the manual after all :)
Reply all
Reply to author
Forward
0 new messages