Re: Unclear about verbose regex syntax (excaping whitespace)

2012-01-10 Thread Tim Chase
On 01/10/12 10:49, Roy Smith wrote: 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: is the second space considered to be preceded by a backslash, and thus ta

Unclear about verbose regex syntax (excaping whitespace)

2012-01-10 Thread Roy Smith
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: is the second space considered to be preceded by a backslash, and thus taken literally, or does the backslas