I have this regex: /(\\(n|t)){3}/gi It should match against "\n\t\tDarkOrchid\n\t\t":
/(\\(n|t)){3}/gi
"\n\t\tDarkOrchid\n\t\t"
Ok, I found the error - \n and \t are newline and tab, and are legal regex characters.
\n
\t