The `(repeating-)?` expressions should use non-capturing parenthesis `(?:repeating-)?` so they are not added to the match array. we don't use that info, and then the array indexes won't need to be changed.