Fix finding last partition's end

Evaluating the binding operator in list context assigns the captured
group, instead of just the fact whether the regexp matches or not.