I have an exepression to validate an email address:
string REGEX_EMAIL = @"^w+([.!#$\%&'*+-/=?^`{|}~]*w+)*@w+([.-]w+)*.w+([.-]w+)*$";
If address is correct IsMatch() method quickly shows true result. But if address string is long and wrong this method hangs.
What can I do to raise speed of this method?
Thanks.
See Question&Answers more detail:os