RE: Split?
- Posted by jordah ferguson <jorfergie03 at yahoo.com> May 06, 2002
- 414 views
Strtok.e is the lib for you, incase you are in need for speed then get the strtok.e library that comes with my email client in the user contributions. it has been modified for speed on the parse,deparse and find all functions jordah ferguson Chris Bensler wrote: > Yes, you can get Kat's strtok.e from the archives. It has parse(), which > > will take any string of text, and split it into tokens. You can specify > the character to use as the separator. It also has a routine for > returning your tokens back to a string, and a bunch of other helpful > routines. > > > Example: > > temp = parse("This:is:a:test", ':') > > temp will be {"This","is","a","test"} > > > Chris > > Robsz2 at aol.com wrote: > > Hello All. > > > > I was wondering if there is a split function or something like it. What > > > > I > > mean by split function is that you open a file and tell the program that > > > > this > > means this and so on. > > > > Ex) > > > > In PERL, you can open a file. Lets say the file looked something like > > this: > > > > Euphoria; Programming; Language > > Best; Language; Ever > > > > > > Now you can tell PERL that "Euphoria" is variable Var1[0], "Programming" > > > > is > > Var2[0], > > "Language" is Var3[0] then... > > "Best" is Var1[1], "Language" is Var2[1], and "Ever" is Var3[1] and so > > on. > > > > (I believe thats how it goes but I dont remember) > > > > How would I do this in Euphoria(win32)? > > > > You can also tell it to use a different splitter other than ";" such > > as":" or > > " " or whatever. > > > > How would I do this in EU? > > > > > > Thanks. > > > > Rob S. > > > >