----- 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to