Matching a section negated character class



examples/regex/negated_character_class.py
import re

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

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