mIRC Home    About    Download    Register    News    Help

Print Thread
#100558 13/10/04 09:22 PM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Code:
tokenize 32,44 first,second,third forth fifth,sixth
echo -a $3


I want $3 to return third not fifth,sixth

p.s. Please don't say "this is easily scripted" because I am aware.
p.p.s It's not something I need or something I'm going to use in the near future, I just thought it would be cool if it was added.

#100559 14/10/04 03:53 PM
Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
//tokenize 44 first,second,third forth fifth,sixth | tokenize 32 $1- | echo -a $3


You won't like it when I get angry.
#100560 14/10/04 10:15 PM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Quote:
p.s. Please don't say "this is easily scripted" because I am aware.

#100561 16/10/04 08:12 AM
Joined: Apr 2004
Posts: 48
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Apr 2004
Posts: 48
Hmmm.. IMHO, i think that the tokenize should be work in this way:

tokenize 124,59 test|;testing|;testingĀ²

and $1 = test, $2 = testing, $3 = testingĀ²

$replace in |; forone character and do the tokenize is easly scripted, but in this way the target character must not be in the string, so its sucks.

and the tok idents works as well, like $numtok(test|;testing|;testingĀ²,124 59)


__________
dark_light @ irc.brasnet.org

Link Copied to Clipboard