Translations:Extension:Scribunto/Lua reference manual/2642/en

For example, $1 (or $2) represents all alphanumeric characters plus the underscore, $3 represents the octal digits, and $4 represents the octal digits plus the lowercase letters plus the $5 character.