mIRC Home    About    Download    Register    News    Help

Print Thread
/tokenize #100558 13/10/04 09:22 PM
Joined: Aug 2004
Posts: 147
N
nalAAlan Offline OP
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.

Re: /tokenize #100559 14/10/04 03:53 PM
Joined: Dec 2002
Posts: 266
Z
zack Offline
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.
Re: /tokenize #100560 14/10/04 10:15 PM
Joined: Aug 2004
Posts: 147
N
nalAAlan Offline OP
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.

Re: /tokenize #100561 16/10/04 08:12 AM
Joined: Apr 2004
Posts: 48
L
Leoric Offline
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