Use the three ...s blue button, called magic text for clipboardAlso how to store a text in clipboard as a variable, thanks in advance
where can I find this?Use the three ...s blue button, called magic text for clipboard
Yes, tick the 'Enable regular expression matching' and replace ' or ' by '|' (without any quotes)View attachment 805
I know this is wrong but is there a similar 'or' operator to add mpr variables?
Thanks! this works so great!Yes, tick the 'Enable regular expression matching' and replace ' or ' by '|' (without any quotes)
this also works on variables! thank you so much.Yes, tick the 'Enable regular expression matching' and replace ' or ' by '|' (without any quotes)
Hey, I need help again. how about 'and'?Yes, tick the 'Enable regular expression matching' and replace ' or ' by '|' (without any quotes)
It all depends on what you want to achieve.Hey, I need help again. how about 'and'?
sample text: one two three four fiveIt all depends on what you want to achieve.
If you want a part of text containing the whole expression between 2 words (such as 'Tom' and 'Jerry' but not only 'Tom' nor 'Jerry'), you'll have to use a regex expression like:
(Tom.+Jerry)|(Jerry.+Tom)
If you want to check whether a text contains the 2 previous words, just check the result of the previous action above and if it is not empty, it means that the text is ok.
But, according to your needs, you can make it much simpler with an 'If...' action using the 'contains' condition.
Sorry but I'm not sure I understand what you mean. If you want to extract 'two' from 'one two ... five' you just to type two in the search field.sample text: one two three four five
so I tried using this (one.+five) and it extract 'one two three four five' which is not what I wanted but a good info, what I want to extract is this two from the sample text: ('one' and 'four') for example so how can I achieve that?
It's not a matter of MD operators (have a look to MacroDroid Wiki) but Regex rules and syntax. A bunch of sites explain how it works: ask your prefered serach engine...If ever possible can you send me the link of all macrodroid's variable operators or from where did you learn those operators thanks
To extract numbers it's very easy (with something like \d+) but then you have to sort them in ascending/descending order or find the greatest/lowest one. It's a bit more complicated: there is no 'formula' (Regex syntax) to do that.there's a number extractor like (55)*(56)*(57) and (55)?(56)?(57) it'll return the highest one it's cool