Fixed with-re-match when more than 9 captures are present to ignore the superfluous captures.