Created
September 18, 2020 23:40
-
-
Save ultrafunkamsterdam/6b6a35f92a01bc77a19ccddc8e805ecf to your computer and use it in GitHub Desktop.
quick and dirty regex to match start/end tag and content in between.
This file contains hidden or 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
import re | |
re_html = re.compile('(?smi)(\<(?P<starttag>.*?)\>(?P<content>.*?)\<\/(?P<endtag>.*?)\>)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment