javascript - FF+Firebug got an error "Regular Expression too complex", IE crashed and Chrome hung -
according http://www.utexas.edu/its/help/domain-name-hosting-and/847 made regular expression:
/^[a-z](\w+\.?\w*[a-z0-9]){5,17}@[a-z]((a-z0-9\-]{1,25}\.[a-z]{2,4})|([a-z0-9\-]{1,25}\.[a-z]{2,3}\.[a-z]{2,3}))$/;
and throw value:
asdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbn@yahoo.com
firefox + firebug says "regular expression complex", ie crashed , chrome hung, there wrong regexp?
i use javascript.
missing [
/^[a-z](\w+\.?\w*[a-z0-9]){5,17}@[a-z]((
here [
a-z0-9\-]{1,25}\.[a-z]{2,4})|([a-z0-9\-]{1,25}\.[a-z]{2,3}\.[a-z]{2,3}))$/;
Comments
Post a Comment