Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Terrible Platform Fighters Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Abuse filter management
Help
Home
Recent filter changes
Examine past edits
Abuse log
Batch testing
Debugging tools
English
Tools
Tools
move to sidebar
hide
Actions
General
Upload file
Special pages
Printable version
Get shortened URL
Appearance
move to sidebar
hide
Here are some tools which may be useful in formulating and debugging abuse filters.
Expression tester
Select an option to add it at the cursor
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Modulo (%)
Power (**)
Value equal to (==)
Value and type equal to (===)
Value not equal to (!=)
Value and type not equal to (!==)
Less than (<)
Greater than (>)
Less than or equal to (<=)
Greater than or equal to (>=)
Not (!)
And (&)
Or (|)
XOR (^)
contained in string (in)
Left string contains right string (contains)
Matches pattern (like)
String literal ("")
Matches regex (rlike)
Matches regex, case-insensitive (irlike)
Ternary operator (cond ? iftrue : iffalse)
Conditional (if cond then iftrue else iffalse end)
Short conditional (if cond then iftrue end)
String length (length(string))
To lower case (lcase(string))
To upper case (ucase(string))
Normalize confusable characters (ccnorm(string))
Normalize and search a string for multiple substrings in OR mode (ccnorm_contains_any(haystack,needle1,needle2,..))
Normalize and search a string for multiple substrings in AND mode (ccnorm_contains_all(haystack,needle1,needle2,..))
Remove double-characters (rmdoubles(string))
Special characters / total characters (specialratio(string))
Normalize (norm(string))
Number of times string X appears in string Y (count(needle,haystack))
Number of times regex X appears in string Y (rcount(needle,haystack))
Array of regex matches within a text for each capturing group (get_matches(needle,haystack))
Remove whitespace (rmwhitespace(text))
Remove special characters (rmspecials(text))
Is IP in range? (ip_in_range(ip, range))
Is IP in any of the ranges? (ip_in_ranges(ip, range1, range2, ...))
Search string for multiple substrings in OR mode (contains_any(haystack,needle1,needle2,...))
Search string for multiple substrings in AND mode (contains_all(haystack,needle1,needle2,...))
Check if a given argument is equal (===) to any of the following arguments (equals_to_any(haystack,needle1,needle2,...))
Substring (substr(subject, offset, length))
Position of substring in string (strpos(haystack, needle))
Replace substring with string (str_replace(subject, search, replace))
Regular expression search and replace (str_replace_regexp(subject, search, replace))
Escape string as literal in regex (rescape(string))
Set variable (set_var(var,value))
Normalize HTML entities into unicode characters (sanitize(string))
Unix timestamp of change (timestamp)
Account name on account creation (accountname)
Action (action)
Lines added in edit (added_lines)
Size change in edit (edit_delta)
Unified diff of changes made by edit (edit_diff)
New page size (new_size)
Old page size (old_size)
New content model (new_content_model)
Old content model (old_content_model)
Lines removed in edit (removed_lines)
Edit summary/reason (summary)
Page ID (page_id)
Page namespace (page_namespace)
Page title without namespace (page_title)
Full page title (page_prefixedtitle)
Page age in seconds (page_age)
Time since last page edit in seconds (page_last_edit_age)
Page ID of move source page (moved_from_id)
Namespace of move source page (moved_from_namespace)
Title of move source page (moved_from_title)
Full title of move source page (moved_from_prefixedtitle)
Move source page age in seconds (moved_from_age)
Time since last move source page edit in seconds (moved_from_last_edit_age)
Page ID of move destination page (moved_to_id)
Namespace of move destination page (moved_to_namespace)
Title of move destination page (moved_to_title)
Full title of move destination page (moved_to_prefixedtitle)
Move destination page age in seconds (moved_to_age)
Time since last move destination page edit in seconds (moved_to_last_edit_age)
Edit count of the user (user_editcount)
Age of the user account (user_age)
IP of the user account (for logged-out users and temporary accounts only) (user_unnamed_ip)
Name of the user account (user_name)
Type of the user account (user_type)
Groups (including implicit) the user is in (user_groups)
Rights that the user has (user_rights)
Whether the user is blocked (user_blocked)
Time email address was confirmed (user_emailconfirm)
Old page wikitext, before the edit (old_wikitext)
New page wikitext, after the edit (new_wikitext)
All external links added in the edit (added_links)
All external links removed in the edit (removed_links)
All external links in the new text (all_links)
New page wikitext, pre-save transformed (new_pst)
Unified diff of changes made by edit, pre-save transformed (edit_diff_pst)
Lines added in edit, pre-save transformed (added_lines_pst)
New page text, stripped of any markup (new_text)
Parsed HTML source of the new revision (new_html)
Edit protection level of the page (page_restrictions_edit)
Move protection level of the page (page_restrictions_move)
Create protection of the page (page_restrictions_create)
Upload protection of the file (page_restrictions_upload)
Last ten users to contribute to the page (page_recent_contributors)
First user to contribute to the page (page_first_contributor)
Edit protection level of move source page (moved_from_restrictions_edit)
Move protection level of move source page (moved_from_restrictions_move)
Create protection of move source page (moved_from_restrictions_create)
Upload protection of move source file (moved_from_restrictions_upload)
Last ten users to contribute to move source page (moved_from_recent_contributors)
First user to contribute to move source page (moved_from_first_contributor)
Edit protection level of move destination page (moved_to_restrictions_edit)
Move protection level of move destination page (moved_to_restrictions_move)
Create protection of move destination page (moved_to_restrictions_create)
Upload protection of move destination file (moved_to_restrictions_upload)
Last ten users to contribute to move destination page (moved_to_recent_contributors)
First user to contribute to move destination page (moved_to_first_contributor)
Links in the page, before the edit (old_links)
SHA1 hash of file contents (file_sha1)
Size of the file in bytes (file_size)
MIME type of the file (file_mime)
Media type of the file (file_mediatype)
Width of the file in pixels (file_width)
Height of the file in pixels (file_height)
Bits per color channel of the file (file_bits_per_channel)
Database name of the wiki (wiki_name)
Language code of the wiki (wiki_language)
Whether or not a user is editing through the mobile interface (user_mobile)
Global groups that the user is in (global_user_groups)
Global edit count of the user (global_user_editcount)
Global groups that the user is in on account creation (global_account_groups)
Global edit count of the user on account creation (global_account_editcount)
OAuth consumer used to perform this change (oauth_consumer)
Whether or not the change was made through a Tor exit node (tor_exit_node)
Switch editor
Check syntax
Evaluate
Restore autoconfirmed status
User:
Re-autoconfirm
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK