How to reduce incorrect email addresses
David Gilbertson
18913

Why are you bothering with regular expressions, you’re making your life harder for yourself.

If you switched to a levenshtein distance (here for node https://www.npmjs.com/package/levenshtein) and set a minimum match requirement (char shifts / percentage matches) on the last half (everything after the @ ) you would save a lot of headache!

We’ve been doing this for years where I work and it works like a charm!

A single golf clap? Or a long standing ovation?

By clapping more or less, you can signal to us which stories really stand out.