BTW After I posted this I realised you had in fact already replied - d'oh!
The problem is that the regex engine works thru the content character by character. It seems like if it finds a match from character x to character y, it will move on to x + 1. Is this right? ----- Original Message ----- From: "Gyrus" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 2:40 AM Subject: Re: RegExp Help > ----- Original Message ----- > From: "Matthew Walker" <[EMAIL PROTECTED]> > > <cfset content=REReplaceNoCase(content, "<a href=""([^ ""]*) > ([^""]*)"">", "<a href=""\1%20\2"">", "all")> > > This will only replace one space per anchor. You need to run it > repeatedly to get them all. > ----------------------------- > > I ended up with a similar solution in replying to the original poster - > with a conditional loop wrapped around it running REFind with the same > regexp. > > Just curious: do you know why you have to loop around, even with the > "ALL" scope set in REReplace? What's the point of the "ALL" bit? > > - Gyrus > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > - [EMAIL PROTECTED] > work: http://www.tengai.co.uk > play: http://www.norlonto.net > - PGP key available > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists