You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad parsing of compiling regex with re.MULTILINE #47837
The second argument to the findall() method of compile objects is the
start position to match from (see http://docs.python.org/lib/re-objects.html). This explains the behaviour
you are witnessing:
Activity
misha commentedon Aug 18, 2008
pitrou commentedon Aug 18, 2008
The re.M flag is an attribute of the compiled pattern, and as such it
must be passed to compile(), not to findall().
These all work:
The second argument to the findall() method of compile objects is the
start position to match from (see
http://docs.python.org/lib/re-objects.html). This explains the behaviour
you are witnessing: