Block foreign Caller IDs

fresh

New member
Hi,

will this work? I get a lot of spam calls, so I want to block every number except Germany and Austria.
It's hard to test, because I don't have a foreign Caller id.
I'm wondering because I used regex and the trigger is only about wildcards (*?).

Thanks 😊
 

Attachments

  • Screenshot_20240210-104319.png
    Screenshot_20240210-104319.png
    72 KB · Views: 17

MacroDroidDev

Administrator
Staff member
I think you need to escape the +49 and +43 to become \+49 and \+44

I would recommend testing via regex101.com (make sure you select Java8 to get the exact same as the app will do(
 

fresh

New member
I think you need to escape the +49 and +43 to become \+49 and \+44

I would recommend testing via regex101.com (make sure you select Java8 to get the exact same as the app will do(
My mistake. Escaped the "+" sign now. Thanks!

But just for clarification: regex in this trigger is definitely supported?
Because here is written that the trigger does not support regex and you have to use an extra variable: https://www.macrodroidforum.com/ind...s-of-numbers-except-one-or-two.1332/post-8400
 

MacroDroidDev

Administrator
Staff member
Ah sorry my bad, I don't think this feature does support regex currently. I will take a look and see if I can add support here soon.
 

hsurB

Well-known member
Alternative for now would be using variables with any incoming call and checking macrodroid's variable
 
Top