regex, ignore case and extract Group <n>

dsnz

Well-known member
in the Extract text manipulation action, add options to

1. ignore case
2. return Group <n> where n should be entered as a number n (currently it's fixed to group 1)
 

FrameXX

Well-known member
If you have more groups you can make MacroDroid to ignore one by adding ?: on start of the group.

start(.*?)something(.*?)end

start(?:.*?)something(.*?)end

this way only text between something and end gets extracted as group 1.

Also I hope we will be soon able to save all groups into an array, when we now have them.
 

dsnz

Well-known member
ow, the non-capturing group !
yes, this is a good workaround
and indeed saving all groups in an array is even better

(I always tend to think of the Java regex dialect as more primitive and forget that it has some good things too)

the ignore case option should still be added
 
Top