Index Ai Academy
Glossary · Phase 0 · Tools

Raw string

Also written: raw strings

A string written with r in front, like r"\d+", where backslashes are kept as they are.

Try it now

Edit the pattern or the text and watch the matches change. Try the presets, then break one on purpose: delete a \b, or change {3} to {2}.

Learn it properly

Regular expressions · Find, check, extract and clean text patterns with the re module. About 40 minutes.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write