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

> From: Munson, Jacob
> 
> Scott and Steve,
> 
> This is strange, I just looked in my Perl docs;  Perl /does/ support
> look behind:
> (?<=...) zero width positive look behind
> (?<!...) zero width negative look behind
> 
> I wonder why CF doesn't support this?  Maybe because it's totally
> possible to do it other ways (positive look ahead could be the same as
> positive look behind, depending on where you put your pattern in the
> regex).  However, if you are used to using look behind, and 
> it's not in
> CF, that's a let down.  I wonder if there are any cases where look
> behind is absolutely necessary...or is it just a different 
> syntax in CF?
> Any experts out there know the answer?  Mr. Forta or Watts?
> 
> > -----Original Message-----
> > From: Scott Stroz
> > 
> > I don't think CF supports lookbehind.
> > 
> > From: Steve Brownlee
> > >
> > > Ok, this is strange.  That RegEx works in Java.... so CF 
> > isn't using the
> > > JDK-provided RegEx implementation?  Looks like it's using 
> the Perl 5
> > > implementation.  Seems counter-productive (if my assumption 
> > is correct, of
> > > course).

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228681
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