If you need something like that, you can always create a Java string.
jstrText = CreateObject("java", "java.lang.String").Init( strCFString );
jstrText.replaceAll("((?<ben )is cool)", "very $1");
The java string supports excellent REgEx maniuplation including look behind,
look ahead (and the negative of both). Just be careful, it uses $N instead
of CF's \N for group refernce.
-ben
.......................
Ben Nadel
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com
Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-----Original Message-----
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Friday, March 31, 2006 12:47 AM
To: CF-Talk
Subject: Re: CF REGEX & deleting IMG tags from content
> Someone can correct me if I'm wrong, but one thing CF doesn't support
> in Perl syntax is look behinds.
If you need look behinds you can use the Java APIs:
http://www.massimocorner.com/coldfusion/cfc/tmt_java_regexp.zip
----------------------------
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236675
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