<cfset replaceStr = REReplace(str, "<a href[^>]*>|</a>", "", "ALL")>

where str is the string you wish to make the replacement in.

On Fri, 22 Oct 2004 11:31:41 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> 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=36

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