^start of string
\$the literal $ (3610 / 448 / 2416)
.*any character (except for line terminators), repeated any number of times
\.the literal . (4610 / 568 / 2E16)
.{2}any character (except for line terminators), repeated exactly 2 times
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first