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).
> >
> > > -----Original Message-----
> > > From: Steve Brownlee
> > >
> > > Ok, ok, so I didn't actually try an example in CF  :)
> > >
> > > CF must use a different RegEx engine than what I'm used to
> > > using.  The ?<! is
> > > negative lookbehind because he said he wanted to grab the
> > > </organization>
> > > tag.


[INFO] -- Access Manager:
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.   A2



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