> Hello Regex Gurus,

> Does anyone know how to do a replacement of a string NOT within  < > (any
> html tag)?

> Lets say I have this string and i want to search for "google" and replace
> it
> with "a great search engine":

> Please click the link for google: <a
> href="http://www.google.com";>Google</A>

> I don't want anything within the <a href...> replaced just anything not
> within <>

> Any thoughts?

> Thanks!

Assuming you're not worried about the beginning of the string ( before any
html ) or the end of the string ( after any html ) ... you could use
something like this

REREplace(mystring,">([^<]*?)Google([^<]*?)<",">\1a great search
engine\2<","ALL")

hth


Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046
______________________________________________________________________
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to