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


 * $1, where $2 and $3 are two distinct characters; such item matches strings that start with $2, end with $3, and where the $2 and $3 are balanced. This means that, if one reads the string from left to right, counting +1 for an $2 and -1 for a $3, the ending $3 is the first $3 where the count reaches 0. For instance, the item $4 matches expressions with balanced parentheses.