This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jonathan.Epstein
Recipients Jonathan.Epstein, eric.smith, ezio.melotti, mrabarnett, yselivanov
Date 2014-02-28.19:24:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAGhQ8s_fnW_MBa3QxcCPo8EAeG05Pt8pGgVbsOvtd8hHg6W2CQ@mail.gmail.com>
In-reply-to <1393615419.17.0.456594233597.issue20810@psf.upfronthosting.co.za>
Content
Sorry, this was dumb.  Thanks for your patience.

On Fri, Feb 28, 2014 at 2:23 PM, Eric V. Smith <report@bugs.python.org>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 beginning of string match the regular
> expression pattern, ...".
>
> If you switch to re.search, they'll all match:
>
> >>> re.search('larvalolympiad',mainProjectsPath)
> <_sre.SRE_Match object at 0xffed54f0>
>
> >>> re.match('.*larvalolympiad.*',mainProjectsPath)
> <_sre.SRE_Match object at 0xffed5870>
>
> >>> re.search('/larvalolympiad/',mainProjectsPath)
> <_sre.SRE_Match object at 0xffed54f0>
>
> ----------
> nosy: +eric.smith
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue20810>
> _______________________________________
>
History
Date User Action Args
2014-02-28 19:24:21Jonathan.Epsteinsetrecipients: + Jonathan.Epstein, eric.smith, ezio.melotti, mrabarnett, yselivanov
2014-02-28 19:24:21Jonathan.Epsteinlinkissue20810 messages
2014-02-28 19:24:21Jonathan.Epsteincreate