DEV Community

Discussion on: I made a podcast about regular expressions

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 * (well, still using *, but different domain), and my own fred& (which is an auto-responder... go ahead and email it).