Matching a section - minimal
examples/regex/matching_section_minimal.py
import re text = "This is <a string> with some <sections> marks." m = re.search(r'<.*?>', text) if m: print(m.group(0))
import re text = "This is <a string> with some <sections> marks." m = re.search(r'<.*?>', text) if m: print(m.group(0))