Words Match

Dm114

Well-known member
There are no device constraints ... Just want to target whatsapp notications for specific words pattern in notification content as specified above the 2 words with space in between.
I don't know how to help you if you say it doesn't work on your side with the sample example you gave us...
 

Endercraft

Moderator (& bug finder :D)
Waiting for the Experts to help me fix this
They ARE the experts...!

There might be an issue with the trigger or the regex used. Change the actions to a simple popup with something like "triggered" and send yourself (using another device) a test message that should match, and see if it works.
If it does, then there might be an issue with the actions.
If it doesn't, change the notification trigger to match anything from Whatsapp and send yourself anything and see if the macro triggers.
If it does then there probably is a problem with the regex or with the messages you want it to trigger on or MacroDroid hasn't been properly excluded from battery optimizations.
It if doesn't, then the notification trigger doesn't have the correct permissions or MacroDroid hasn't been properly excluded from battery optimizations.

To see if battery optimization is the problem, run the tests with MacroDroid opened.
In all cases check the troubleshooting section of the app (button in top left corner on main app screen -> Troubleshooting).
 

silverlord27

New member
All other macros are working fine and getting results but this particular macro word1 whitespace Word2 is not working and its the regex sytax issue which doesn't match white space between 2 spcific words

Screenshot_2024-04-10-17-53-54-773_com.arlosoft.macrodroid.jpg
 

silverlord27

New member
They ARE the experts...!

There might be an issue with the trigger or the regex used. Change the actions to a simple popup with something like "triggered" and send yourself (using another device) a test message that should match, and see if it works.
If it does, then there might be an issue with the actions.
If it doesn't, change the notification trigger to match anything from Whatsapp and send yourself anything and see if the macro triggers.
If it does then there probably is a problem with the regex or with the messages you want it to trigger on or MacroDroid hasn't been properly excluded from battery optimizations.
It if doesn't, then the notification trigger doesn't have the correct permissions or MacroDroid hasn't been properly excluded from battery optimizations.

To see if battery optimization is the problem, run the tests with MacroDroid opened.
In all cases check the troubleshooting section of the app (button in top left corner on main app screen -> Troubleshooting).
Its working if we use pop up before writting file but with strange behaviour it doesnot work with multiple set of words to match from or using word boundaries. How to cope up with this
 

silverlord27

New member
Its working if we use pop up before writting file but with strange behaviour it doesnot work with multiple set of words to match from or using word boundaries. How to cope up with this
For example we have set of phrases in regex

(Jack John|Mary Jane|Peter Parker|Bruce Wayne)

It will not match any phrase from set but will match if any single phrase like Mary Jane is an option to match using regex

Wondering why it is happening now
 

Dm114

Well-known member
For example we have set of phrases in regex

(Jack John|Mary Jane|Peter Parker|Bruce Wayne)

It will not match any phrase from set but will match if any single phrase like Mary Jane is an option to match using regex

Wondering why it is happening now
To me it works without parentheses
Jack John|Mary Jane|Peter Parker|Bruce Wayne
 
Last edited:

silverlord27

New member
To me ot works without parentheses
Jack John|Mary Jane|Peter Parker|Bruce Wayne
Figured out the problem ... Even if you have checked case insensitive using regex still you have to include in regex expression thats how its working

(?i)(Jack John|Mary Jane|Peter Parker|Bruce Wayne).*
 

Dm114

Well-known member
Figured out the problem ... Even if you have checked case insensitive using regex still you have to include in regex expression thats how its working

(?i)(Jack John|Mary Jane|Peter Parker|Bruce Wayne).*
Case insensitive checkbox is only available with plain/regular matching. Not Regex. So if you need to make such a search, you must add it in your Regex rule (as you did it)
 
Top