Regex not working in PMG but work elsewhere

sunlie71

New Member
May 9, 2024
1
0
1
Hi, I write a regex in PMG to negate certain email domain, it looks like this:

(?!.*@negatethis\.com)

I've try this regex on a few regex testing site (https://regex101.com and https://regexr.com) and it works just fine, but on PMG I got error.

Is the PMG regex different from others? Kindly help.
 
Hi,

I think the regex in your case should look as the following:
Code:
^(?!.*@negatethis\.com$).*