The capture groups are indexed based on their absolute position in the string, not the order they are encountered. So (match-string 2) will return the match data for the second captured group "2".
(match-string 2)