Oh I just have a habbit of using the bell character to delimit a list
when I don't know what kind of content the list will have in it...
otherwise, if you use a printable character like a | or the like, then
if the content happens to have that printed character within the
quoted sections, the array will be incorrect... the assumption is that
since the ascii bell character isn't really useful for anything
anymore, that the likelyhood you'll have that problem of it being in
the content is slim to none.

Actually my original post was incorrect also:

ListToArray(reReplace('"' & listrest(mylist & "
",'"'),'"([^"]*)"[^"]*',"\1" & chr(7),"ALL"),chr(7))

I forgot the "all" in the rereplace function... plus, you need the
listrest() to eliminate the last bit of text outside the strings on
the beginning -- and modified the expressions lightly to account for
that as well... The extra space ensures that there's at least some
content after the last double-quote so it won't drop the last item
from the rereplace...


> Thanx Claude, Barney and S. Isaac. Why you're using
> BELL(chr(7)) char
> like separator for that list?

> Cheers

> MD

> 2005/8/30, S. Isaac Dealey <[EMAIL PROTECTED]>:
>> > Hi all
>>
>> > please look this var:
>>
>> > <cfset mylist = 'Rob Munchen Robert Munchen "RDM
>> > Testing
>> > string inside
>> > string" more testing 'cause "Fred" Gregg Robinson'>
>>
>> > How to get strings inside double quotes("RDM Testing
>> > string inside
>> > string and "Fred")?
>>
>> > Using GetToken don't work.
>>
>> > Any help?
>>
>> > Cheers
>>
>> ListToArray(reReplace(mylist,'[^"]*"([^"]*)"',"\1" &
>> chr(7)),chr(7))
>>


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216824
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to