Unclear about verbose regex syntax (excaping whitespace)
Roy Smith
roy at panix.com
Tue Jan 10 11:49:43 EST 2012
More information about the Python-list mailing list
Tue Jan 10 11:49:43 EST 2012
- Previous message (by thread): Perplexed by the behavior of import
- Next message (by thread): Unclear about verbose regex syntax (excaping whitespace)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The docs for re.VERBOSE say, "Whitespace within the pattern is ignored, except when [...] preceded by an unescaped backslash". It's unclear exactly what that means. If my pattern is: <backslash><space><space> is the second space considered to be preceded by a backslash, and thus taken literally, or does the backslash only apply to the first <space>? I suspect the latter, but it's somewhat ambiguous.
- Previous message (by thread): Perplexed by the behavior of import
- Next message (by thread): Unclear about verbose regex syntax (excaping whitespace)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list