RootCauseunvalidated
The captured input associated with a group is always the subsequence that the group most recently matched. — If a group is evaluated a second time because of quantification then its previously-captured value, if any, will be retained if the second evaluation fails. Tension: All captured input is discarded at the beginning of each match. Outcome: This line explains the behavior.
8e2d8d06-0a26-44c2-8fb8-cf137181061d
The captured input associated with a group is always the subsequence that the group most recently matched. — If a group is evaluated a second time because of quantification then its previously-captured value, if any, will be retained if the second evaluation fails. Tension: All captured input is discarded at the beginning of each match. Outcome: This line explains the behavior.