> I'm pretty sure that should say "the leftmost start paired with the leftmost end".
I’m pretty sure it shouldn’t, that would give you the leftmost shortest match instead of leftmost longest.
As originally written, doesn't it go from the start of the first match to the end of the last match? I feel like I'm missing something.
As originally written, doesn't it go from the start of the first match to the end of the last match? I feel like I'm missing something.