Regex * & ?

md_sgf

Member
My If clause i want is: If log_item = ret(urn(ed)*)*( )*f(rom)*( )*(town|abroad)
But that doesn't work (ticked regex)

Some tests i've done:
v ret*f*town no regex
x ret*f*(town) no regex
v ret*f*(town) regex
v ret*f*(to(w)n) regex (nested ()s)

Currently using:
If log_item = ret*f*town OR ret*f*abroad
That works, with regex or not

So my question is, what operator(s) can i use for 0 or more (which i normally use * for, as that's usual regex format), as it appears that * (& ? ?) is being used by DOS-type matching, & i am unable to use it for regex. I presume there is no official macrodroid documentation for regex anywhere?
 
Last edited:

RSF

Well-known member
regex101.com is a good resource for learning, building and testing regular expressions. Although there are slightly different variants of regular expressions, they tend to differ only in obscure, uncommon areas; in my experience anything that worked on the regex101 site works find in MacroDroid.
 
Top