Fix regex indices in rerere stuff

I forgot that the 0th match in a regex is the whole thing,
and the 1st match is the first subexpression.