I have a simple regex that matches email addresses:
[\w.-]+@[\w.-]+\w+
It's not perfect and I don't need it to be more complex, this will do for the application I'm working on.
The string where I'm applying the regex to has a lot of email addresses and I want to block/skip email addresses from X domain (the domain will change from string to string)
This is what I was trying to do, but it doesn't always work:
[\w.-]+@([^craigslist][\w.-]+)\w+
Can somebody please help? I will really appreciate it!