janschenkel at yahoo.com
Wed Jul 31 06:24:01 EDT 2002
There are two problems here:
- the itemDelimiter property wants a single char
- the separator "*$*" consists of characters which are
themselves used for the decomposition of regular
expression, so that makes it hard to use matchChunk
Hence a little workaround, assuming the string does
not contain multiple lines:
function myItemExtractor pString, pDelimiter, pitemNum
put pString into tString
replace pDelimiter with return in tString
split tString by return
Perhaps not the most elegant solution, but it should
"As we grow older, we grow both wiser and more foolish
at the same time." (De Rochefoucald)
--- Yves Coppé <yvescoppe at skynet.be> wrote:
> is it possible to write a function which should
> extract an item of a
> list BUT the itemDel should be, NOT one Char, but a
> charset of 3
> chars !
> my list :
> I'd like to get item 3 with is "Three"
> In this case the itemdel is "*$*"
> thank you
> Yves COPPE
> Email : yvescoppe at skynet.be
> use-revolution mailing list
> use-revolution at lists.runrev.com
Do You Yahoo!?
Yahoo! Health - Feel better, live better
More information about the Use-livecode