> I don't think you need a regex, although it might be faster.

> Using double quotes as the delimiter, all the even numbered
> elements will be the ones you want to convert. Grab these
> then replace all the commas.

Decent Idea... If you still want the regex, it'd be something like this:

<cfscript>
commadelimiter = '"([^,]*?),([^"]*?)"';
while (REFind(mystring,commadelimiter)) {
        mystring = REREplace(mystring,commadelimiter,'"\1-\2"','ALL');
}
<cfscript>

hth


Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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