Oh great! Erm...
Easy enough to find out... (I think) Do a refind, not a rereplace If(refind("src=""http://", astring) neq true) { astring = rereplace(astring, "src=""http://", "src=""", "all"); } > I think he wants to only replace where the src attribute > doesn't contain http > > so src="www.google" becomes src="http://www.google.com" > > and src="http://www.google.com" doesn't becomes > src="http://http://www.google.com" > > Is this right Giles? > > Ade > > -----Original Message----- > From: Paul Johnston [mailto:[EMAIL PROTECTED] > Sent: 02 June 2003 17:01 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] regex Quickie > > > > > > Hi Guys. > > > > Coulds someone let me know how to replace > > src=" OR src=' not (src="http or src='http) > > with something using regex. > > REReplace(aString, "src=(""|')", "replacement", "all") > > Bear in mind that it'll be "" (as you'll be escaping the quote) > > HTH > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]