© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Jason Knight
The less code you use, the less there is to break
This regular expression meets all of those security requirements set by the internet people.
Except for lengths. :D
Sébastien Portebois
Software architect at Ubisoft
Definitely. I didn't take the time to battle test it, but when I read (\.[^<>()\[\]\\.,;:\s@"]+)*) in the sample above, I started to smell redos opportunities here
(\.[^<>()\[\]\\.,;:\s@"]+)*)