Note that to use this, you need to enable subexpressions and check the
position on the proper one. It's easier just to match all of "rat" and add
one, as someone suggested.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: J E VanOver [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 3:53 PM
: To: CF-Talk
: Subject: RE: Regex help
:
:
: [^cC](at) (in CF -- other RE engines would be [^cC]\(at\)
:
: -----Original Message-----
: From: Teel, C. Doug [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 11:42 AM
: To: CF-Talk
: Subject: RE: Regex help
:
:
: Thanks JE for the response.
:
: One note: This will also match something like "rat", but I only want the
: "at" matched in rat.
:
: -----Original Message-----
: From: J E VanOver [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 12:58 PM
: To: CF-Talk
: Subject: RE: Regex help
:
:
: You're close ...
:
: [^cC]at should match any single character that is not c (or C)
: followed by
: "at"
:
: -----Original Message-----
: From: Teel, C. Doug [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 10:33 AM
: To: CF-Talk
: Subject: Regex help
:
:
: Regex help please. I've been busting my brain on this one.
:
: Here's what I'm trying to do, I could have string like:
: "...a cat hat prate at bird..."
: And I want to match all the "at" strings except the "at" string in the
: "cat".
:
: I tried a bunch of stuff like: "(^C)?at" but that didn't work. Is this
: possible?
:
: Thanks in advance, Doug
:
:
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com