From WikiChip
Difference between revisions of "mirc/identifiers/$wildtok"
Line 1: | Line 1: | ||
− | {{mirc title|$wildtok identifier}}'''$wildtok''' returns the Nth token that matches the wildcard string. '''$wildtok''' is a case sensitive equivalent. | + | {{mirc title|$wildtok identifier}}'''$wildtok''' returns the Nth token that matches the {{mirc|wildcard}} string. '''$wildtok''' is a case sensitive equivalent. |
Line 8: | Line 8: | ||
* '''<list>''' - The list of tokens (can be empty) | * '''<list>''' - The list of tokens (can be empty) | ||
− | * '''wildstring''' - a wildcard string token used to match | + | * '''wildstring''' - a {{mirc|wildcard}} string token used to match |
* '''N''' - The Nth matching token, default to 1, if N is 0, returns the total number of matching tokens. | * '''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 | * '''<C>''' - The ascii number (or code point) of the character seperating the tokens |
Revision as of 16:18, 20 October 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$wildtok returns the Nth token that matches the wildcard string. $wildtok is a case sensitive equivalent.
Synopsis
$wildtok(<list>,wildstring,N,C)
Parameters
- <list> - The list of tokens (can be empty)
- wildstring - a wildcard string token used to match
- 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
$wildtok(one two three,t*e,1,32) return 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
- $addtok
- $deltok
- $findtok
- $gettok
- $instok
- $istok
- $matchtok
- $numtok
- $puttok
- $remtok
- $reptok
- $sorttok
- $wildtokcs
mIRC identifier list