Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
regex [2021/03/19 08:47] – niklas | regex [2021/03/19 08:57] – niklas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **Clean paragraph tags** | + | ====== Useful regular expressions ====== |
+ | |||
+ | =====Clean paragraph tags===== | ||
Replace | Replace | ||
< | < | ||
with | with | ||
< | < | ||
- | **remove span tags:** | + | =====remove span tags:===== |
Replace | Replace | ||
< | < | ||
with nothing | with nothing | ||
- | **Remove empty paragraph tags:** | + | =====Remove empty paragraph tags:===== |
Replace | Replace | ||
< | < | ||
Line 18: | Line 20: | ||
with nothing | with nothing | ||
- | **Bold paragraphs to h4:** | + | =====Bold paragraphs to h4:===== |
Replace | Replace | ||
< | < | ||
Line 27: | Line 29: | ||
< | < | ||
</ | </ | ||
- | **Handling footnotes:** | + | =====Handling footnotes:===== |
< | < | ||
<a (href="# | <a (href="# | ||
Line 48: | Line 50: | ||
\1< | \1< | ||
</ | </ | ||
- | **Finding and replacing double quotation:** | + | =====Finding and replacing double quotation:===== |
< | < | ||
(?< | (?< | ||
Line 59: | Line 61: | ||
< | < | ||
- | **Removing line breaks in code:** | + | =====Removing line breaks in code:===== |
This is useful if above isn't working because of line breaks. | This is useful if above isn't working because of line breaks. | ||
Replace | Replace |