What is, exactly raw string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is, exactly raw string?

How it affects

27th Jan 2017, 6:23 PM
Ehson Miraz
Ehson Miraz - avatar
2 Answers
+ 3
A "raw string literal" is a slightly different syntax for a string literal, in which a backslash, \, is taken as meaning "just a backslash" (except when it comes right before a quote that would otherwise terminate the literal) -- no "escape sequences" to represent newlines, tabs, backspaces, form-feeds, and so on. In normal string literals, each backslash must be doubled up to avoid being taken as the start of an escape sequence.
27th Jan 2017, 7:03 PM
Elite
Elite - avatar