+ 1
Lesson question
The lesson states “To avoid any confusion while working with regular expressions, we would use raw strings ... Raw strings don't escape anything, “ What is meant by “raw strings don’t escape anything “?
2 Antworten
+ 2
put this into your IDE.
print('solo \nlearn')
print(r'solo \nlearn')
The '\n' means 'new line', in a raw string, the '\n' is part of the sting and 'escapes' it's 'special' meaning.