正则表达式验证 - 使 none@anydomain.com 无效但验证其他电子邮件

RegEx Validation - Invalidate none@anydomain.com but validates other email

我确实有这个验证电子邮件地址的正则表达式: ^\w+(\.\w+)*@(\w+\.)+\w{2,4}$

我需要附加此当前正则表达式,使以 none@na@

开头的电子邮件地址无效

怎么办?谢谢!

在模式的开头添加否定前瞻:

^(?!none@|na@)\w+(\.\w+)*@(\w+\.)+\w{2,4}$

https://regex101.com/r/vf4WqT/1