User:SamanthaNguyen/Regular expressions

From mediawiki.org
Matching for Expression Replace expression
Names of PHP method calls ([a-zA-Z]+)?::([a-zA-Z0-9]+)(\(\))?
Mentions of a hook in a release notes file ([A-Za-z]+)( hook(s)?)
Configuration variables that are linked using {{ll}} {{ll\|Manual:\$wg([A-Za-z0-9]+)\|(\$wg[A-Za-z0-9]+)}}
Name of a configuration setting \$wg([A-Za-z0-9]+)
Name of a CVE enry CVE-(\d+)-(\d+) {{CVE entry|CVE-$1-$2}}
Hooks by file category \[\[Category:Hooks by file(\{\{#translation:\}\})?\|([A-Za-z_]+).php\]\] {{MediaWiki hooks included in file|filename=$2}}
Hook method (\$this->getHookRunner\(\)|\$this->hookRunner|Hooks::runner\(\))->on
Packagist URL https://packagist.org/packages/([A-Za-z-]+)/([A-Za-z-]+) {{packagist|vendor=$1|package=$2}}
External Composer libraries Added) ([a-z-]+)/([a-z-]+) $1 {{packagist|vendor=$2|package=$3}}
Phabricator task T(\d+) {{PhabT|$1}}
SQL query with DESCRIBE <(code|tt)>'''DESCRIBE''' ([A-Za-z0-9_]+);</(code|tt)>
JSDoc link \[https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/([A-Za-z.-]+) ([A-Za-z.-\s:$()]+)\] {{Js doclink|$1|text=$2}}