Alex Meiburg (@Timeroot) on X
It is a little known fact that valid email addresses are not a regular language.
There is no regex that accepts precisely the set of possible email addresses. How can this be? Surely something like [^\s@]+@([a-zA-Z0-9-]+\.)+[a-z]+ should work, right?
The answer is... comments!
X (formerly Twitter)