Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <s*[^>]+s*>
- input = """<h1>test</h1>
- <h2>test2</h2>
- <div id="content"></div>
- <p>test3</p>
- <div id="nav"></div>
- <p>test3</p>"""
- tags = re.findall(r'<s*[^>]+s*>', input)
- print(tags)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement