79442295

Date: 2025-02-15 22:00:52
Score: 0.5
Natty:
Report link

I've tried this pattern with regex101.com and it seems to be working as described:

 example@___.com - no match 
 [email protected] - no match 
 [email protected] - match 
 [email protected] - match

So the regex itself seems to be "correct" - could it be that the issue is somewhere else in the code?

As a side note - it also matches lines like:

example@./com
example@x com

Dot . outside of character class construct [] means "any character". If you want it to match exactly dot character and nothing else, escape it with slash: \.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dmytro