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 steve.newcomb
Recipients steve.newcomb
Date 2018-12-14.16:06:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544803576.39.0.788709270274.issue35496@psf.upfronthosting.co.za>
In-reply-to
Content
Documentation for the re module insists that matches are made left-to-right within the alternatives delimited by an "or* | group.  I seem to have found a case where the rightmost alternative is matched unless it (and only it) is commented out.  See attached script, which is self-explanatory.
History
Date User Action Args
2018-12-14 16:06:16steve.newcombsetrecipients: + steve.newcomb
2018-12-14 16:06:16steve.newcombsetmessageid: <1544803576.39.0.788709270274.issue35496@psf.upfronthosting.co.za>
2018-12-14 16:06:16steve.newcomblinkissue35496 messages
2018-12-14 16:06:16steve.newcombcreate