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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…