Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Matching a section negated character class

import re

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

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