DEV Community

Discussion on: I made a podcast about regular expressions

Collapse
randalschwartz profile image
Randal L. Schwartz

The first episode, /^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,6})*$/, is about checking that a given string is a valid email.

And fails spectacularly. Two in-use emails are *@qz.to (well, still using *, but different domain), and my own fred&barney@stonehenge.com (which is an auto-responder... go ahead and email it).