[issue20810] literal re fails to match

2014-02-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 wrote: > > Eric V. Smith added the comment: > > re.match requires a match at the beginning of the string. From the docs: > "If zero or more characters at the begin

[issue20810] literal re fails to match

2014-02-28 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20810] literal re fails to match

2014-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: re.match requires a match at the beginning of the string. From the docs: "If zero or more characters at the beginning of string match the regular expression pattern, ...". If you switch to re.search, they'll all match: >>> re.search('larvalolympiad',mainProjec

[issue20810] literal re fails to match

2014-02-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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) m2