From WikiChip
$matchtok Identifier - mIRC
< mirc‎ | identifiers
Revision as of 17:55, 21 September 2017 by 83.204.218.38 (talk) (Created page with "{{mirc title|$matchtok Identifier}}'''$matchtok''' returns the tokens that contain the specified string. == Synopsis == <pre>$matchok(<list>,string,N,C)</pre> == Paramters...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$matchtok returns the tokens that contain the specified string.


Synopsis

$matchok(<list>,string,N,C)

Paramters

  • <list> - The list of tokens (can be empty)
  • string - the string used to match token
  • N - The Nth matching token, default to 1, if N is 0, returns the total number of matching tokens.
  • <C> - The ascii number (or code point) of the character seperating the tokens

Properties

None

Example

$matchtok(one two three, e, 0, 32) returns 2
 
$matchtok(one two three, e, 2, 32) returns three

Compatibility

Added: mIRC v4.7
Added on: 09 Dec 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$addtokcs $remtok $gettok $deltok $matchtokcs $wildtok $findtok $istok $instok $puttok $numtok $reptok $sorttokcs