Hi Ryan,
This code looks doubtful to me, for a few reasons:
(^[[:alnum:]]([._-]?[[:alnum:]]+)*+\@[[:alnum:]]+([.-]?[[:alnum:]]+)*\.[[:al
pha:]]{1,4}$)
^ no multipler for the opening character? Does that mean only
a single alnum allowed before punctuation? I would expect a "+" inserted
here.
^ what's the significance of the "?". I'm not familiar
with "?" as a multiplier. Looks like it should be left out.
^ what's the "+" for? What is is
modifying? Could be left out?
^ and THIS question
mark?
On the other hand, I've never had much luck trying to understand other
people's REs, so I may be talking garbage. Anyone who can explain this RE
to me, please feel free!!
Anyway, none of that would explain why it hangs.
So, wasn't that a lot of help ;-)
Let us know what you find,
best of luck,
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-----Original Message-----
From: Ryan [mailto:[EMAIL PROTECTED]]
....
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:]]+([.-]?[[:alnu
m:]]+)*\.[[:alpha:]]{1,4}$)', fieldvalue, "True")>
Invalid!
</CFIF>
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists