We have cfmx.. I'll give those a try... I used JS to get the beginning of the link and then to remove the link. And if works fine but I'd like to use regex if possible.
On Fri, 22 Oct 2004 13:43:52 -0400, Jerry Johnson <[EMAIL PROTECTED]> wrote: > 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 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:182366 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

