New submission from Steve Newcomb <s...@coolheads.com>:
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. ---------- files: left-to-right_violation_in_python3_re_match.py messages: 331838 nosy: steve.newcomb priority: normal severity: normal status: open title: left-to-right violation in match order type: behavior versions: Python 3.6 Added file: https://bugs.python.org/file47997/left-to-right_violation_in_python3_re_match.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35496> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com