examples/regex/negated_character_class.py
from __future__ import print_function
import re

str = "This is <a string> with some sections <marked> with special characters"

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