The vast majority of programming languages use $n to get the nth parenthesized submatch string. I suggest using $1, $2 instead of (1), (2)