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

(Created page with "{{mirc title|$regex Identifier}}'''$regex''' returns the number of string which matched the regular expression == Synopsis == <pre>$regex([name],input,regex)</pre> == Parame...")
 
Line 1: Line 1:
{{mirc title|$regex Identifier}}'''$regex''' returns the number of string which matched the regular expression
+
{{mirc title|$regex Identifier}}'''$regex''' returns the number of string which matched the regular expression, more information about regex in mIRC {{mIRC|regex|here}}
  
 
== Synopsis ==
 
== Synopsis ==

Revision as of 18:44, 25 February 2018

$regex returns the number of string which matched the regular expression, more information about regex in mIRC here

Synopsis

$regex([name],input,regex)

Parameters

  • name - The optional name of the regex, to be used later to retrieve captured group with $regml or $regmlex
  • input - The input text
  • regex - The regular expression for PCRE

Properties

None

Example

//echo -a $regex(abcd,/[a-z]/g)

Compatibility

Added: mIRC v5.9
Added on: 26 Apr 2001
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also