R. David Murray added the comment: The thing is, what you describe is fundamental to how regular expressions work. I'm not sure it makes sense to add a specific mention of it to the '|' docs, since it applies to all regexes.
---------- assignee: -> docs@python components: +Documentation -Regular Expressions nosy: +docs@python, r.david.murray title: regex "|" behavior differs from documentation -> add example of 'first match wins' to regex "|" documentation? _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23532> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com