Oliver Cookson wrote: > > Im looking for this string (see bottom) and want to remove EVERYTHING > except the word "a string here". This string could be any length or any > combo of chars\integers. > > Also the JS arg (14) is dynamic so that could be any number, everything > else is static. > > <A class=jargon href="javascript:popUpJargonDefinition(14)">a string > here</A>
Do you mean this string is part of a larger text? Use: <cfset text = REReplaceNoCase(text,'^.*<A class=jargon href="javascript:popUpJargonDefinition([0-9]*)">(.*)</a>.*$',"\1")> else: <cfset text = REReplaceNoCase(text,'<A class=jargon href="javascript:popUpJargonDefinition([0-9]*)">(.*)</a>',"\1")> Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

