I have an authorizer function which needs to check email rules with wildcards e.g.
- mike.12@*.myapp.com
- p*@*.in
- julia.admin@myapp.*
so e.g.
- peter@gmail.com => false
- peter@myapp.it => true (3rd. rule)
- pete@someapp.in => true (2nd rule)
I am a bit stuck on how to best construct a regex - or maybe there are other out of the box solutions? Appreciate any help! Thanks