However, I converted both the pattern and string to raw strings. Shouldn't that mean the regex is trying to match two characters, which is within the string?
– MoondraJul 20 '17 at 16:32
The string contains a backslash and an n, but `re.search` doesn't mean "search for this string". "Search for this string" is just `str.find`.
– user2357112Jul 28 '17 at 20:54