RE: in REREPLACE ) works but not (

2006-12-20 Thread Ben Nadel
Probably because ( is a reserved character for GROUPS in regular expression. Try escaping: cfset Form.City1 = rereplace( Form.City1, \(, ( , all ) Notice the \ before the ( .. Ben Nadel Certified Advanced ColdFusion MX7 Developer

RE: in REREPLACE ) works but not (

2006-12-20 Thread Steve Brownlee
Because regular expression parsers see '(' as the beginning of a regex group whereas ')' is evaluated literally. You'll need to escape the opening parenthesis. cfset Form.City1 = rereplace(Form.City1,\(,( , all) Steve Brownlee http://www.fusioncube.net/ -Original Message- From:

Re: in REREPLACE ) works but not (

2006-12-20 Thread Adrian
erm, not using a regex, so no need for rereplace? cfset Form.City1 = Replace(Form.City1,(,( , all) On 20/12/06, Ben Nadel [EMAIL PROTECTED] wrote: Probably because ( is a reserved character for GROUPS in regular expression. Try escaping: cfset Form.City1 = rereplace( Form.City1,