rereplacenocase(text, 'href="[^"]+"', 'href=""', "all");
Replace the literal href call, the open quote, anything except a quote, and the close quote with the empty href attribute. Make sense? --Ben Tim Raster wrote: > I tried to read up on the RegEx stuff, but my little brain can't handle it. > > I have a big string of html text in a variable, and I want to replace all the > HREF parameters within the A tags with empty strings. For example change all > occurrences of: > > ........<a href="URL_Stuff_Here" class="blah">blah</a>... > > Into this: > > ........<a href="" class="blah">blah</a>... > > I basically just want to empty the HREFs. What RegEx expression can I use in > a REReplace? > > TIA! > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:21:929 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
