DEV Community

Discussion on: There's only one way to validate an email address

Collapse
 
scottishross profile image
Ross Henderson • Edited

When I validate an email I simply regex for alphanumeric, @ and a . following the @. As you say, it's impossible to truly validate an email address without sending an email, but it's worth making sure it's a potentially valid email address.

Edit: In fact I think my regex actually works like: [capture-group-1}@[capture-group-2].[capture-group-3]