User:Juwan/Regex
Appearance
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}}