Next / Previous / Contents / Shipman's homepage

6.24. SLASH_RE

A regular expression that matches zero or more whitespace characters, a mandatory slash, and zero or more following whitespace characters.

nomcompile3
SLASH_RE = re.compile (
    r'\s*'          # Matches zero or more whitespace characters
    r'/'            # Matches a slash
    r'\s*' )        # Matches zero or more whitespace characters