Last active
January 26, 2024 16:52
-
-
Save greg-randall/d1b2a18fc294881b0138d610e707cd48 to your computer and use it in GitHub Desktop.
HTML Cleanup Regexes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove bold/strong from all headings: | |
f: (<h(\d)[^>]*>)\s*<(b|strong)>([^<]*)</\3>\s*(</h\2>) | |
r: $1$4$5 | |
notes: wont work on headings with links or other tags inside the heading. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment