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 serhiy.storchaka
Recipients ezio.melotti, gregory.p.smith, mrabarnett, serhiy.storchaka
Date 2020-11-14.12:02:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605355356.24.0.123746426977.issue42353@roundup.psfhosted.org>
In-reply-to
Content
I seen a code which uses re.search() with anchor ^ instead of re.match(), but I never seen a code which uses re.match() instead of re.search(). It just won't work unless you add explicit ".*" or ".*?" at the start of the pattern, and it is a clear indication that re.match() matches the start of the string.
History
Date User Action Args
2020-11-14 12:02:36serhiy.storchakasetrecipients: + serhiy.storchaka, gregory.p.smith, ezio.melotti, mrabarnett
2020-11-14 12:02:36serhiy.storchakasetmessageid: <1605355356.24.0.123746426977.issue42353@roundup.psfhosted.org>
2020-11-14 12:02:36serhiy.storchakalinkissue42353 messages
2020-11-14 12:02:36serhiy.storchakacreate