I got a little confused about Python raw string. I know that if we use raw string, then it will treat ''
as a normal backslash (ex. r'
'
would be and
n
). However, I was wondering what if I want to match a new line character in raw string. I tried r'\n'
, but it didn't work.
Anybody has some good idea about this?
question from:https://stackoverflow.com/questions/14689531/how-to-match-a-new-line-character-in-python-raw-string