The only special characters inside a character set are bracket `]`, the backslash `\`, the caret `^`, and the hyphen `-`. As a result there is no need to escape `.` when inside a character class.