User:松/Drafts/Extension:AbuseFilter/Rules format: Difference between revisions
User:松/Drafts/Extension:AbuseFilter/Rules format (view source)
Revision as of 13:19, 13 August 2020
, 3 years ago→Functions
(→Functions: Translation code removal.) |
m (→Functions) |
||
Line 727:
| <code>rcount</code> || Similar to <code>count</code> but the needle uses a regular expression instead.Can be made case-insensitive by letting the regular expression start with "(?i)".Please note that, for plain strings, this function can be up to 50 times slower than <code>count</code><ref>https://3v4l.org/S6IGP</ref>, so use that one when possible.
|-
| <code>get_matches</code> || {{MW version-inline|MW 1.31+}}
|-
| <code>ip_in_range</code> ||
|-
| <code>contains_any</code> || <translate><!--T:347--> Returns true if the first string contains '''any''' string from the following arguments (unlimited number of arguments in logic OR mode).</translate> <translate><!--T:348--> If the first argument is an array, it gets casted to string.</translate>
|