What about something like this:
<cfset invalidchars = "[!@`;:'%&,""<>##\*\?\$\^\]">
<!--- invalidate certain characters --->
<CFSET tempstring = REReplace(tempstring,invalidchars,"","ALL")>
Glenn Olsen
Doceus
-----Original Message-----
From: Bruce, Rodney [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 5:13 PM
To: CF-Talk
Subject: OT: Regexp
I need help with a regexp.
I am trying to remove all special chars from file names.
I can remove them one at a time like so:
tempstring = REREplace(tempstring, " ", "", "all")
tempstring = REReplace(tempstring, "@", "", "all")
etc
but the # errors out.
How can I do this in one pass, if possible?
Thanks for any and all help
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists