This gets rid of the tags, but not what's inside the <A> tags. Greg, what version of CF are you running (5.0 or less or CFMX)?
Jerry Johnson >>> [EMAIL PROTECTED] 10/22/04 01:35PM >>> <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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182359 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