Metacharacter What It Matches (string) Used for backreferencing (see Examples 9.38 and 9.39) \1 or $1 Matches first set of parentheses[a] \2 or $2 Matches second set of parentheses \3 or $3 Matches third set of parentheses