Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

best unity regex for email validation in c#

bool isEmail = Regex.IsMatch(emailString, @"A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)", RegexOptions.IgnoreCase);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unity #regex #email #validation
ADD COMMENT
Topic
Name
7+6 =