How is \\n and \\\n interpreted by the expanded regular expression?
This is dependent on the programming language and on its string handling options. For example, in Java strings, if you need a literal backslash in a string, you need to double it. So the regex \n must be written as “\\n”. If you plan to match a backslash using a regex, then you need to escape it twice … Read more