what is the best way to extract last 2 characters of a string using regular expression.
For example, I want to extract state code from the following
\"A_IL\"
Use /(..)$/, then pull group 1 (.groups(1), $1, \1, etc.).
/(..)$/
.groups(1)
$1
\1