User:Megavolt/regex

< User:Megavolt
Revision as of 08:56, 29 March 2021 by Megavolt (talk | contribs) (">" to "<")


Here i will add a list of regex commands for daily usage for remembering.

description Search Replace
Add "Special:MyLanguage" to internal links (?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\]\] [[Special:MyLanguage/$6|<translate>$6</translate>]]
(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\|([A-Za-z0-9 '+-_]+)\]\] [[Special:MyLanguage/$5|<translate>$6</translate>]]