mIRC Home    About    Download    Register    News    Help

Print Thread
#100558 13/10/04 09:22 PM
Joined: Aug 2004
Posts: 142
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 142
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: 264
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 264
//tokenize 44 first,second,third forth fifth,sixth | tokenize 32 $1- | echo -a $3

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

#100561 16/10/04 08:12 AM
L
Leoric
Leoric
L
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)


Link Copied to Clipboard