dot-escape_regex function

Escapes any characters that would have special meaning in a regular expression