Thanks for the investigating, Jacob.  So the JDK uses Perl which is why my
lookbehind worked in my class, and then CF uses a "proprietary" version of
Perl's implementation.  Something just doesn't feel right about all that...
just not sure what.

Well, no matter.  You're right that tinkering with how you structure your
pattern, you can mimic the [negative/positive] lookbehind function.

-----Original Message-----
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 06, 2006 6:04 PM
To: CF-Talk
Subject: RE: Regex ex question. How to match NOT this string.

I just looked in my "Advanced Macromedia ColdFusion MX 7 Application
Development" book (what a title! ;)), written by Ben Forta and a bunch of
other folks, and this paragraph is very on topic:

"...these additions make ColdFusion's RegEx support much more powerful, and
much closer to the way regular expressions work in Perl, which for many
people is the de facto standard for how regular expressions should behave".
The additions they are talking about are things like look ahead, word
boundaries, escape sequences, etc.  Also, this sentence answers our previous
question "ColdFusion does not support (Perl's) lookbehind processing..."

Also, it looks like Java uses Perl's syntax as well:
http://tinyurl.com/ay8kc


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228693
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to