I didn't test that particular line of code, but I've always been under the
impression that to match a meta-character, you have to escape it. I defer to
those on the list that have a greater knowledge of regex than I.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:24 AM
To: CF-Talk
Subject: RE: How do I write a Regex for this?


Hmmm..I'm getting conflicting info from the list...

One said to escape the characters... \.\$, (don't
know why the comma wasn't escaped...perhaps
it isn't "special"...(now it's sad because it's not "special"... ;o)

Another said they don't need to be escaped...

You're coming down on the escape side...

would it be REReplace(string, "[\.\$,]", "", "All")
or
would it be REReplace(string, "[\.\$\,]", "", "All")

?

Just for the record, I implemented it without the
escapes yesterday and it seems to be performing correctly...

Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234614
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to