No because using $matchtokcs(%i,i,1,44)
means it'll match the first token containing "i
". Take at look at your variable again:
%i = b Ban,e Except,I Invite,i Invite only
To match in the way you want you need to use $wildtokcs()
like so (differences highlighted):
//var %i = b Ban,e Except,I Invite,i Invite only | //echo -aet $gettok($wildtokcs(%i,i *,1,44),2-,32)
Damn you qwerty!