Glossary · Phase 0 · Tools
Regular expression
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.
Other terms from the same lesson
- raw string: A string written with r in front, like r"\d+", where backslashes are kept as they are.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.