Trying to use Eclipse regex search to find email addresses ( i.e. anything@domain.com) in files where the specific user is not user.a@domain.com or user.b@domain.com.
Using the string below the items in bold need to be found, while the other addresses need to be skipped:
bob@domain.com,user.b@domain.com,andy@domain.com,user.a@domain.com
I’ve got as far as the following but its not working as I think it should.
\b(?!user.b)\w*@domain.com\b
This will find all email addresses regardless of domain, just keep appending to list of not
user\.b@domain.com|user\.a@domain.com|more email addresses and escape the"."