From WikiChip
Difference between revisions of "mirc/identifiers/$reptok"
(Created page with "{{mirc title|$reptok Identifier}}'''$reptok''' replaces the Nth matching token in text with a new token. If N = 0, applies to all matching items == Synopsis == <pre>$reptok(...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$reptok Identifier}}'''$reptok''' replaces the Nth matching token in text with a new token. If N = 0, applies to all matching items | + | {{mirc title|$reptok Identifier}}'''$reptok''' replaces the Nth matching token in text with a new token. If N = 0, applies to all matching items. '''$reptokcs''' is a case sensitive version |
Line 23: | Line 23: | ||
== See Also == | == See Also == | ||
− | {{mIRC|$ | + | * {{mIRC|$addtok}} |
− | {{mIRC|$ | + | * {{mIRC|$deltok}} |
− | {{mIRC|$ | + | * {{mIRC|$findtok}} |
− | {{mIRC|$ | + | * {{mIRC|$gettok}} |
− | {{mIRC|$ | + | * {{mIRC|$istok}} |
− | {{mIRC|$ | + | * {{mIRC|$instok}} |
− | {{mIRC|$ | + | * {{mIRC|$matchtok}} |
− | {{mIRC|$ | + | * {{mIRC|$numtok}} |
− | {{mIRC|$ | + | * {{mIRC|$puttok}} |
− | {{mIRC|$ | + | * {{mIRC|$remtok}} |
− | {{mIRC|$ | + | * {{mIRC|$reptokcs}} |
− | {{mIRC|$ | + | * {{mIRC|$sorttok}} |
− | {{mIRC|$ | + | * {{mIRC|$wildtok}} |
+ | {{mIRC identifier list}} | ||
− | + | [[Category:mIRC identifiers|reptok]] | |
− | [[Category:mIRC identifiers| |
Latest revision as of 09:26, 15 February 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$reptok replaces the Nth matching token in text with a new token. If N = 0, applies to all matching items. $reptokcs is a case sensitive version
Synopsis[edit]
$reptok(<list>,token,new,N,C)
Paramters[edit]
- <list> - The list of tokens (can be empty)
- token - the token used to match
- new - the token used to replace the matching token.
- N - The Nth matching token, default to 1, if N is 0, applies to all matching tokens.
- <C> - The ascii number (or code point) of the character seperating the tokens
Properties[edit]
None
Example[edit]
$reptok(one two three, two, four, 32) returns one four three
Compatibility[edit]
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[edit]
- $addtok
- $deltok
- $findtok
- $gettok
- $istok
- $instok
- $matchtok
- $numtok
- $puttok
- $remtok
- $reptokcs
- $sorttok
- $wildtok
mIRC identifier list