Actions
$regex » History » Revision 4
« Previous |
Revision 4/10
(diff)
| Next »
Per Amundsen, 08/13/2015 10:34 AM
Added in 1.9.0
$regex([name], text, re)
Returns the number of strings in text that matched the [[Scripting_Regex|regular expression}].
Parameters
[name] - Name of the search, which can later be referenced using $regml. (optional)
text - The text to search.
re - The regular expression to perform.
Example
; Search the text for the pattern '(hello)' and print the result. //echo -ag Number of matches: $regex(Hello World, /(hello)/) match 1 is: $regml(1)
Updated by Per Amundsen over 9 years ago · 4 revisions