Matching a section



examples/regex/matching_section.py
import re

text = "This is <a string> with some <sections> marks."

m = re.search(r'<.*>', text)
if m:
    print(m.group(0))