#558 tweaked to handle an even number of backslashes

I added the improvement proposed by @igrekster to #558. Now the regex only match "\t" not preceded by a backslash or preceded by an even number of them. The same goes for "\r"