change patterns to raw strings, so len('\b') == 2