Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct regular expression for an email address? [duplicate]

Tags:

regex

email

Duplicate: Using a regular expression to validate an email address


There seem to be an awful lot of different variants on this on the web and was wondering if there is a definitive answer?

Preferably using the .net (Regex) dialect of regular expressions.

like image 384
AndyM Avatar asked Jan 23 '23 22:01

AndyM


1 Answers

This question has been asked and answered several times:

Using a regular expression to validate an email address

Why are people using regexp for email and other complex validation?

Regexp recognition of email address hard?

Specifically related to .NET:

Validating e-mail with regular expression VB.Net

like image 86
Aron Rotteveel Avatar answered Apr 27 '23 23:04

Aron Rotteveel