You should use `\s*` to allow arbitrary whitespace.

Also, looking at that regex, none of the existing `\` characters are necessary.