I have a registration form that users fill with their email address (and password).
The web framework I am using (Symfony) lets me specify a regular expression for an email address to be "good-to-go".
I want to block some domains that are just spammers, let's say:
example1.com example2.com
So I need a regex that means: "accept everything but email addresses from those domains"
How can I put together the regular expression for that?
I tried with:
/!(@(examples1\.com|example2\.com)$)/
But it doesn't do what it is supposed to do.
Can somebody help, please?