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 Mark.Shannon, Rick Otten, docs@python, ezio.melotti, mrabarnett, r.david.murray, serhiy.storchaka
Date 2017-06-04.15:57:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496591871.28.0.787526931147.issue23532@psf.upfronthosting.co.za>
In-reply-to
Content
From the documentation:

"""
As the target string is scanned, REs separated by ``'|'`` are tried from left to right. When one pattern completely matches, that branch is accepted. This means that once ``A`` matches, ``B`` will not be tested further, even if it would produce a longer overall match.  In other words, the ``'|'`` operator is never greedy.
"""

I think this completely describes the behavior.
History
Date User Action Args
2017-06-04 15:57:51serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, r.david.murray, docs@python, Mark.Shannon, Rick Otten
2017-06-04 15:57:51serhiy.storchakasetmessageid: <1496591871.28.0.787526931147.issue23532@psf.upfronthosting.co.za>
2017-06-04 15:57:51serhiy.storchakalinkissue23532 messages
2017-06-04 15:57:51serhiy.storchakacreate