<cfset str = "This is a <a href=""server.cfm"" title=""test"">Test</a>.
<b>weeee</b> <a href=""server.cfm"" title=""test"">Test</a>">

<cfoutput>
#rereplaceNoCase(str, "<a[^>]*>.*?a>","","ALL")#
</cfoutput>

-----Original Message-----
From: Greg Morphis [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 22, 2004 12:32 PM
To: CF-Talk
Subject: regex to remove link

can someone assist me in creating a regex that would remove a link from
text.
The link is dynamic..
IE..
text = 
Upload Document Here
<br><a href='/atc/upload/?action=edit&testplan=21'
target='_blank'>Upload Docs</a>

text should equal = 
Upload Document Here

thanks in advance



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=35

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