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.
- [email protected] => false
- [email protected] => true (3rd. rule)
- [email protected] => 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