RegEx and email validation in .NET(rabdullin.com)
submitted by
abdullin(385) 3 years, 6 months ago
That's the email validation RegEx script I'm using. It has really high ratio for detecting bad emails and a rather good performance.
string regex = @"^[a-z0-9](([_\.\-\']?[a-z0-9]+)*)@(([a-z0-9]{1,64})(([\.\-][a-z0-9]{1,64})*)\.([a-z]{2,})|(\d{1,3}(\.\d{1,3}){3}))$";
More details in the article.
|category: C#
|Views: 37
tags:
C# another
Everyones tags:
Your Tags: