Manjaro Difference between revisions of "User:Megavolt/regex"

Difference between revisions of "User:Megavolt/regex"

From Manjaro
m (Update Special:MyLanguage)
m (Update Special:MyLanguage: divide into 2 cases)
Line 6: Line 6:
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
! Usage !! Search !! Replace
! description !! Search !! Replace
|-
|-
| Add "Special:MyLanguage" to internal links || <nowiki>(?!\[\[(C|c)ategory|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z '+-_]+)</nowiki> || <nowiki>[[Special:MyLanguage/$5</nowiki>
| rowspan="2"|Add "Special:MyLanguage" to internal links
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\]\]</nowiki>
| <nowiki>[[Special:MyLanguage/$6|<translate>$6</translate>]]</nowiki>
|-
|-
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\|([A-Za-z0-9 '+-_]+)\]\]</nowiki>
| <nowiki>[[Special:MyLanguage/$5|<translate>$6</translate>]]</nowiki>
|}
|}

Revision as of 08:53, 29 March 2021


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>]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.