The reason that I ask is that I don't see a quick way to do what you 
originally asked.  But there are ways.  Here's the quickest (from a 
coding point of view, if not a processing point of view) that I can 
think of....

There's a UDF on cflib.org called ReExtract() (I think that's right) 
that you should be able to use like this:

toBeReplaced = reextract(text, "<td>.*?<h3>.*?</h3></td>");
text = replace(text, tobereplaced, replace(tobereplaced, ",", ", ", "all"));

Loop on that until you've got them all (assuming there's more than one 
per page).  Or, if reExtract() can produce an array, you can loop over 
that.  I've never used it, so YMMV.

Anyway, this is (obviously) untested, but should point you in the right 
direction.  If you need more help, feel free to ask.

--Ben

Todd wrote:
> Well, this is an SEO thing and I wasn't sure if having extra spaces all over 
> the place in the meta tags and everywhere else would cause any confusion.
> 
> ----- Original Message ----- 
> From: "Ben Doom" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Monday, January 03, 2005 9:36 AM
> Subject: Re: SOT: RegEx help
> 
> 
> 
>>Well, it seems to me that there should be a space after every comma,
>>anyway, so couldn't you just do a simple replace() to replace commas
>>with a comma and a space?
>>
>>--Ben 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189146
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to