I have the following regex pattern to find an email address in my code:
/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]{8,}/i
I want to make sure it does not match a certain string if it includes:
abc
xyz
Just to exclude the abc I have tried:
/(?!.*abc)[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]{8,}/i
But that is horribly slow.