[issue35496] left-to-right violation in match order

2018-12-16 Thread Steve Newcomb
Steve Newcomb added the comment: I'm very grateful for your time and attention, and sorry to have distracted you. You're correct when you say: Steven D'Aprano: ...the rightmost alternative matches from position 1 of the text, while the leftmost alternative doesn't match until position 8.

[issue35496] left-to-right violation in match order

2018-12-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: > See attached script, which is self-explanatory. I'm glad one of us thinks so, because I find it clear as mud. I spent *way* longer on this than I should have, but I simplified your sample code to the best of my ability. (See attached.) As far as I can tel

[issue35496] left-to-right violation in match order

2018-12-14 Thread Steve Newcomb
New submission from Steve Newcomb : 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