On Sun, Jan 1, 2017 at 8:25 PM, Terry Reedy wrote:
\> 3.6 added syntax for 'local flags'.
> '''
> (?imsx-imsx:...)
>
> (Zero or more letters from the set 'i', 'm', 's', 'x', optionally
> followed by '-' followed by one or more letters from the same set.) The
> letters set or removes the corres
The re module defines several flags that affect the compilation of a
pattern string. For instance, re.I == re.IGNORECASE results in
case-insensitive matching.
But what if you want part of a pattern to be case sensitive and part
not? For instance, the IDLE colorizer needs to match keywords an