DEV Community

Discussion on: Regex isn't that hard

Collapse
 
belinde profile image
Franco Traversaro

Pay attention, the first example is wrong: /.+@.com/ matches something like "name@xcom". A better example (still not covering a lot of peculiar cases) could be /.+@.+\.com/

Collapse
 
dinmon profile image
Dinys Monvoisin

Thank you for pointing this mistake. I guess many people do not read thoroughly.