When I wrote this task 18 months ago there was no better way to get captured groups. Now, however, the Regex action in the AutoTools plug-in is a much better option.
That being said, here is how to use the old way.
Test (7)
A1: Variable Set
Name:%string
To:"Extract this text"
Do Maths:Off
Append:Off
A2: Perform Task
Name:Regex
Priority:%priority+1
Parameter 1 (%par1):%string
Parameter 2 (%par2):"([^"]+)"
Stop:Off
A3: Flash
Text:%rxGroup(1)
Long:Off
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/T4_HZzIN2h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Regex.tsk.xml is the name of the file that you should have downloaded from the documentation page you mentioned in your first post. When you import that into Tasker it will create a new task called Regex. That is the task I call in the Perform Task action.
> Tasker relies on JS regex which doesn't support lookback reference
If you mean a zero width look behind reference that looks like this:
(?<=a)
Then Tasker does support this. I use it quite often in fact.
--
At the bottom of the page you referenced, there is a link. I circled it in red in the attachment. Click that to get to the file downloads.
Sorry for the confusion, I thought you had already done that.
On September 14, 2016 10:23:24 AM David Berlind <da...@berlind.org> wrote:
> I
read
> somewhere that Tasker's Search/Replace (to the extent that it supports
> regular expressions) relies on the Javascript engine.
Actually Tasker uses Java methods, not Javascript.
--