Index Ai Academy
Glossary · Phase 0 · Tools

Regular expression

Also written: regular expressions, regex, regexes

A short pattern that describes text, like \d+ for "one or more digits", used to find, check or clean text.

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