Re: Parsing with StrTok
- Posted by cklester <cklester at yahoo.com> Oct 05, 2005
- 440 views
Juergen Luethje wrote: > cklester wrote: > > Juergen Luethje wrote: > >> what do you *exactly* want to achieve? > > I've got a string that will be delimited by commas and/or line breaks. > > Kat's strtok's parse() routine seems to allow for multiple delimiters, but > > it doesn't seem to be working with '\n'. Got a fix? Kat? > > > > The final list needs to be in a sequence, of course. > > > > "one,two > > three" > > > > becomes { "one","two","three" } > > OK. In order to be able to help you, I must know the answer to the other > question that I asked. What do you want "one,two,,more" to become? Note > the two adjacent commas. > -> { "one","two","more" } > or > -> { "one","two","","more" } The first one. Empty sequences aren't needed. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/