try this:
<cfset nDescription=REReplace(nDescription, "\[\*/\[]\{}&\^%\$&\\"']", '',
'ALL')>
if you've got the CF green book by Forta, it lists the special chars as:
+*?.[^$(_{|\
and you escape each by putting \ in front of it.
Duncan Cumming
IT Manager
http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600
Creative solutions in a technical world
----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------
"Douglas
McKenzie" To: "CF-Dev"
<[EMAIL PROTECTED]>
<doug@clevermonk cc:
eys.co.uk> Subject: [ cf-dev ] regex help
02/20/03 06:33
PM
Please respond
to dev
heres the code:
<cfset nDescription=REReplace(nDescription, "[*\/[]{}&^%$&"']", '', 'ALL')>
I think the ' in theh replacement strig is causing the crash. How do I
esacape it?
Cheers,
Douglas McKenzie
----------------------------------------
Internet Developer / Designer
[EMAIL PROTECTED]
020 7267 6718
----------------------------------------
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]