Python Regex Module
Multiple Choice Medium
Question
Which function from the `re` module finds all matches in a string?
Hint
The function name contains 'all'.
Explanation
re.findall() returns a list of all non-overlapping matches. re.match() only matches at the start of the string. re.search() finds the first match anywhere. Use re.findall() when you want every match.
Related Resources
Related Lessons
- Regex
The re module.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.