Tasker Variable Search/Replace and Regex

244 views
Skip to first unread message

William Hahn

unread,
Mar 7, 2018, 3:38:45 PM3/7/18
to Tasker
Ok I can used some help please.   I have been fighting with Variable Search Replace for may hours with no luck getting any regex to work.   I even tried testing with the steps in this thread https://groups.google.com/forum/#!msg/tasker/4kXX1SkR1So/_twq9CgSbUQJ;context-place=forum/tasker with no luck.

I basically have the below 
        A1: Variable Set [ Name:%var To:http://maps.google.com/maps?q=N51.307278,W000.143415 Do Maths:Off Append:Off ] 


        A2: Variable Search Replace [ Variable:%var Search:(?<==).* Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In:%match Replace Matches:Off Replace Matches: Off ] 
        A3: Compose Email [ Recipient f...@foo.com, Subject: test, Message: var: %var, match: %match

I can't get any regex to work at all.  I have validated that all my regex patterns work on https://www.regextester.com/.   What am I missing I can never get %match to contain any matched pattern?      Below are also some screen shots to help.








Rich D

unread,
Mar 7, 2018, 4:09:33 PM3/7/18
to Tasker Google Groups Post


I can't get any regex to work at all.  I have validated that all my regex patterns work on https://www.regextester.com/.   What am I missing I can never get %match to contain any matched pattern?     


This has happened to many others so don't go out on the ledge.... :)

%match will be an "array"  try flashing %match()


William Hahn

unread,
Mar 7, 2018, 4:19:09 PM3/7/18
to Tasker
I can't believe I missed that :{.      Thanks I knew it was something that simple.

Rich D

unread,
Mar 7, 2018, 4:25:29 PM3/7/18
to Tasker Google Groups Post

I can't believe I missed that :{.      Thanks I knew it was something that simple.

Well,  let's be 'Frank' - 'William'....  There Ain't nothin simple about tasker 
🤔
Reply all
Reply to author
Forward
0 new messages