Hi Graham,
not sure if your regex would work, but I do know it would not work for me, as the
regex string is not just one character but a long string of characters like [^a-z\.,]
etc. so I would not be able to specify the backreference.
example
obj.value = obj.value.replace("[^a-z\.,'\-\s]", "");
-----Original Message-----
From: Graham Cook [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 November 2003 11:42 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: [OT] JS RegEx
Hi Taco, I'm a newbie at regular expressions, but looking at my O'Reilly
book they give the example to remove any doubled words:
<cfset NoDupes = ReReplaceNoCase("I would like to go to to the park","([A-Z]+)[
]+\1","\1","\1","ALL">
>From that could the extrapolation for your situation be along the lines:
"([']+)[]+\1","\1","\1","ALL"
Regards
Graham Cook
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004