Handle two-digit backreferences and captures.