Proper escaping in regexes

In Erlang "\\}" doesn't make sense in a string so I removed all those.

Second commit fixes a missing \ to properly escape the '.'.

The third commit I'm not 100% sure about, but it seems likely that you want to match on *all* whitespace.  \s means literal space in a string and will be treated as such in the regex. \\s means \s to the regex which will match [\s\t\r\n] (i.e. space, tab, cr, lf).