Fixed issue with escaped characters

"\\" is just anscaped backslash (\), when you insert that into RegExp it will escape the following character.
To escape the backslash in RegExp, you need to double escape it in the string: "\\\\" that's an escaped double backslash (\\) which will be an escaped backslash in RegExp.