Try [[:punct:]]

That gets rid of punctuation... anything that's not letters or numbers 
basically.

tempstring = REReplace(tempstring, "[[:punct:]]", "", "all")


Stuart Duncan
MaracasMedia Inc.


At 02:12 PM 8/17/01 -0700, you wrote:
>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

Reply via email to