User:Xenwolf/Regex snippets: Difference between revisions
m fixed generalization: I obviously mixed up the rows in https://en.xen.wiki/index.php?title=User%3AXenwolf%2FRegex_snippets&type=revision&diff=50396&oldid=50395 |
remove redundant substitution (is included in "add one space after cell metachar") |
||
Line 2: | Line 2: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Pattern to Find | ! width="56%" | Pattern to Find | ||
! Replace by | ! width="14%" | Replace by | ||
! Purpose | ! Purpose | ||
|- | |- | ||
Line 29: | Line 29: | ||
| <code><nowiki>\1= \2 \1=</nowiki></code> | | <code><nowiki>\1= \2 \1=</nowiki></code> | ||
| downgrade heading structure from (h1, h2, h3, ...) to (h2, h3, h4, ...) | | downgrade heading structure from (h1, h2, h3, ...) to (h2, h3, h4, ...) | ||
|- | |- | ||
| <code><nowiki>\[\[([- \w]+)_</nowiki></code> | | <code><nowiki>\[\[([- \w]+)_</nowiki></code> |