raw string

A string literal prefixed with r, in which backslashes are kept as ordinary characters instead of starting escape sequences.

In more detail

Raw strings are the usual way to write regular expressions, r"\d+", and Windows paths, r"C:\new\data". A raw string cannot end with a single backslash.

Related terms

Taught in

References

Certification courses