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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -