> But, what is the $, and the i?
-> http://rubular.com/ -> Regex quick reference

The \ escapes the . Thus \. matches the '.' character.

Marc Weber