I'm writing a parser and all the strings I get are escaped (\\), so I want to convert it (e.g. "\\n") into it's actual escaped sequence representation (which is "\n" or more precisely "\10").
Hard-coding I've came up with multiReplace "\\n" with "\n", and so on.
Here's the code: https://play.nim-lang.org/#ix=3MIL.