if you do not want to match the real string, but a string (with two characters), such as '\n' , you just need to avoid the backslash with another \\n so that it is not recognized as linebreak.
But most programming languages ββare slightly different when it comes to escaping, so you need to check your language documents for this, but maybe two backslashes will work.
luukes
source share