mIRC Homepage
Posted By: nalAAlan /tokenize - 13/10/04 09:22 PM
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.
Posted By: zack Re: /tokenize - 14/10/04 03:53 PM
//tokenize 44 first,second,third forth fifth,sixth | tokenize 32 $1- | echo -a $3
Posted By: nalAAlan Re: /tokenize - 14/10/04 10:15 PM
Quote:
p.s. Please don't say "this is easily scripted" because I am aware.
Posted By: Leoric Re: /tokenize - 16/10/04 08:12 AM
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)
© mIRC Discussion Forums