Fixing a typo (. instead of \.) in a regex