Re: Strtok-v2-1.e problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Haflidi Asgrimsson wrote:
> 
> I'm parsing stings such as "1__2_3_4_5". I'm using Strtok-v2-1.e and what I
> want is
> a sequence like {"1","","2","4","5"}.
> The parse function of Strtok-v2-1.e gives me {"1","2","4","5"}. It splits the
> parse
> string into atoms so "__" gives the same as '_'.
> There doesn't seem to be any substring function in the standard library so I'm
> kind
> of stranded on this simple issue.
> Does anyone have a idea how to do this without writing a lot of code.

Look at Michael Raley's "Parse with Keep" library...

http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=parse+with+keep

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu