Skip to content

Glossary: Python Beyond the Basics

raw string

Also written: r"", raw strings

A string written with `r` before the quote, in which Python leaves backslashes alone. Regular expression patterns are written this way, like `r"\d+"`.

Where the book teaches it

Related terms

regular expression