I was guessing the + would increase performance by removing continuous
strings of them in one pass, rather than several. You'd have to test it to
be sure.
AFA a-z0-9 vs [:alnum:] I think this is probably a nonissue as far as
performance goes, and is a stylistic decision.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: s. isaac dealey [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, August 19, 2003 3:11 PM
: To: CF-Talk
: Subject: RE: RE: RegEx help>
:
:
: personally I prefer
:
: rereplace(string,"[^[:alnum:]]","","all")
:
: in either case the + is extraneous
: ben: does that improve performance you think?
:
:
: Original Message -----------------------
: rereplacenocase(string, "[^a-z0-9]+", "", "all");
:
:
: -- Ben Doom
: Programmer & General Lackey
: Moonbow Software, Inc
:
: : -----Original Message-----
: : From: Bosky, Dave [mailto:[EMAIL PROTECTED]
: : Sent: Tuesday, August 19, 2003 2:10 PM
: : To: CF-Talk
: : Subject: RegEx help>
: :
: :
: : I was looking for a RegEx to strip all non-alphanumeric characters.
: :
: : <cfset string = "fete%20&%20it&89">
: : <cfset myVar = replacenocase(string,"RegEx","","All")>
: :
: : Thanks,
: : Dave
: :
: :
: :
: :
: : HTC Disclaimer: The information contained in this message may be
: : privileged and confidential and protected from disclosure. If the
: : reader of this message is not the intended recipient, or an
: : employee or agent responsible for delivering this message to the
: : intended recipient, you are hereby notified that any
: : dissemination, distribution or copying of this communication is
: : strictly prohibited. If you have received this communication in
: : error, please notify us immediately by replying to the message
: : and deleting it from your computer. Thank you.
: :
: :
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm