User:Xenwolf/Regex snippets

From Xenharmonic Wiki
Revision as of 14:49, 25 October 2018 by Xenwolf (talk | contribs) (+1)
Jump to navigation Jump to search

These are regular expressions I use in Notepad++, they are also usable in Perl.

Pattern to Find Replace by Purpose
\|\s*([^|]+?)\s*> {{Monzo|\1}} replace inline-monzos in tables
^\| \| | remove empty styling from table cells
\[\[([\d/]+)\|\1\]\] [[\1]] simplify wiki links