In a previous question, I got the answer on a regular expression to accept all email addresses from a certain domain except two from the same domain.
e.g. :-
BAD:
[email protected]
[email protected]
GOOD:
[email protected]
[email protected]
Here is the regular expression from that answer:
^(?!test@|tes2@)[A-Za-z0-9._%+-]+@testdomain\.com$
However, for my application, I specifically need RE2 regex to be able to use this.
What is the steps I should take to convert this PCRE expression to RE2 type?