ColdFusion MX supports positive and negative look aheads.

>Try this:
>
>#REReplaceNoCase(
>       "<a href=this,that and the other>word</a>",
>       "(<a[^>]*>)((?!</a).)*?(</a[^>]*>)",
>       "\2",
>       "ALL"
>)#
>
>That uses a negative look ahead... I can't remember if that is supported in
>CF directly or not. If it is not, try this:
>
>#REReplaceNoCase(
>       "<a href=this,that and the other>word</a>",
>       "(<a[^>]*>)(.)*?(</a[^>]*>)",
>       "\2",
>       "ALL"
>)#
>
>
>......................
>Ben Nadel 
>www.bennadel.com
>Certified Advanced ColdFusion Developer
>
>Need Help?
>www.bennadel.com/ask-ben/
>
>
>-----Original Message-----
>From: Doug Brown [mailto:[EMAIL PROTECTED] 
>Sent: Monday, August 28, 2006 8:12 AM
>To: CF-Talk
>Subject: regex help
>
>Was wondering how I would strip out everything between
>
><a href=this,that and the other>word</a> and just leave the word?
>
>
>Any ideas

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251234
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to