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 janzert
Recipients Jason.Stumpf, dbenbenn, ezio.melotti, janzert, mrabarnett, serhiy.storchaka
Date 2013-09-19.22:52:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379631126.58.0.773605364278.issue19055@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation on the | operator in the re module pretty explicitly covers this. http://docs.python.org/2/library/re.html

"A|B, where A and B can be arbitrary REs, creates a regular expression that will match either A or B. An arbitrary number of REs can be separated by the '|' in this way. This can be used inside groups (see below) as well. 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."
History
Date User Action Args
2013-09-19 22:52:06janzertsetrecipients: + janzert, dbenbenn, ezio.melotti, mrabarnett, serhiy.storchaka, Jason.Stumpf
2013-09-19 22:52:06janzertsetmessageid: <1379631126.58.0.773605364278.issue19055@psf.upfronthosting.co.za>
2013-09-19 22:52:06janzertlinkissue19055 messages
2013-09-19 22:52:06janzertcreate