In python regular expression, raw string behavior is different.
import re
m = re.match(r"\n","C:\some\nDay\n")
print(m)
a= re.match("\n", "C:\some\nDay\n")
print(a)
In the first expression, it should consider \n as normal text and return the match position. but in both expression None is the output.