From WikiChip
Difference between revisions of "mirc/identifiers/$reptok"
< mirc‎ | identifiers

(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(...")
 
m
Line 23: Line 23:
  
 
== See Also ==
 
== See Also ==
{{mIRC|$addtokcs}}
+
* {{mIRC|$addtok}}
{{mIRC|$remtok}}
+
* {{mIRC|$deltok}}
{{mIRC|$gettok}}
+
* {{mIRC|$findtok}}
{{mIRC|$deltok}}
+
* {{mIRC|$gettok}}
{{mIRC|$matchtok}}
+
* {{mIRC|$istok}}
{{mIRC|$wildtok}}
+
* {{mIRC|$instok}}
{{mIRC|$findtok}}
+
* {{mIRC|$matchtok}}
{{mIRC|$istok}}
+
* {{mIRC|$numtok}}
{{mIRC|$instok}}
+
* {{mIRC|$puttok}}
{{mIRC|$puttok}}
+
* {{mIRC|$remtok}}
{{mIRC|$numtok}}
+
* {{mIRC|$reptokcs}}
{{mIRC|$reptokcs}}
+
* {{mIRC|$sorttok}}
{{mIRC|$sorttokcs}}
+
* {{mIRC|$wildtok}}
 +
{{mIRC identifier list}}
  
 
+
[[Category:mIRC identifiers|reptok]]
[[Category:mIRC identifiers|addtok]]
 

Revision as of 18:54, 22 September 2017

$reptok replaces the Nth matching token in text with a new token. If N = 0, applies to all matching items


Synopsis

$reptok(<list>,token,new,N,C)

Paramters

  • <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

None

Example

$reptok(one two three, two, four, 32) returns one four 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

[Expand]
v · d · e mIRC identifier list