Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: CF regular expressions buggy?
Ryan (61p/+0r)     Posted: Wednesday 20 Dec 2000
This post: 27 views, +0 rating

Anyone else have problems with regular expressions in CF 4.5.1 SP2? I have this reg exp code that validates an email address (found the code in the archives of this list). When I run certain email addresses through it, it locks up my CF server! It floors the CPU until I kill the thread. And sometimes it doesn't lock up, but when the page is displayed I can see that that part of the code took 18569 ms to execute! I havn't been able to figure out exactly what it is in some addresses that cause it. It seems to happen when I make it longer. If dfdf@dfdf.com goes through, sometimes I try something like dfdf@dfdf.cofdfdfmfdffgf and it hangs.

Does this code look OK, or is there a variant of it I could try that maybe won't be buggy? My next option is to just do the validation piece by piece: find the last ., make sure there are x chars after it, make sure it only has one @ sign, no spaces or other ilegal chars, etc etc.

<CFIF Len(fieldvalue) AND NOT REFindNoCase('(^[[:alnum:]]([._-]?[[:alnum:]]+)*+\@[[:alnum:]]+([.-]?[[:alnum:]]+)*\.[[:alpha:]]{1,4}$)', fieldvalue, "True")> Invalid! </CFIF>

Thanks for any help.

Ryan


Similar Subject Line Posts (+/- two weeks of this post)
Re: CF regular expressions buggy?  21 Dec 2000   (28 v/ +0 r)
Re: CF regular expressions buggy?  21 Dec 2000   (33 v/ +0 r)
RE: CF regular expressions buggy?  20 Dec 2000   (29 v/ +0 r)
CF regular expressions buggy?  20 Dec 2000 (this post)   (27 v/ +0 r)
CF regular expressions buggy?  20 Dec 2000   (26 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000