The first one matches because the two strings are exactly the same. The "\n" in both strings represents a new line.

In the second one, "\\" is read as a single "\" in an input string. This may...