[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
New submission from Jonathan Epstein: All 3 of these regex's should match, but in practice only m2 does. Found deep in the bowels of debugging a larger problem. import re mainProjectsPath = '/groups/larvalolympiad/larvalolympiad/Projects/' m1 = re.match('larvalolympiad',mainProjectsPath

[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
Jonathan Epstein added the comment: Sorry, this was dumb. Thanks for your patience. On Fri, Feb 28, 2014 at 2:23 PM, Eric V. Smith rep...@bugs.python.orgwrote: Eric V. Smith added the comment: re.match requires a match at the beginning of the string. From the docs: If zero or more