liveBook · Manning

Re.findall()

re.findall() is a Python regular-expression function that returns all non-overlapping matches of a pattern in a string.

How 2 Manning books explain it

Regular Expression Puzzles and AI Coding Assistants

re.findall is a Python regular-expression function that returns all non-overlapping matches, including captured groups when the pattern contains them.

How it is used
Uses it to collect word, card-rank, or suit matches while assessing regex and AI suggestions.
How deep it goes
Explains captured-group output through repeated-rank traces, but stops short of a broad API reference.
Examples
Tests x-to-y words, repeated poker ranks, and suit extraction from flush hands.
What you can do after
Evaluate/understand it: judge whether a regex extracts the intended values and whether its tests support the claim.

Read how Regular Expression Puzzles and AI Coding Assistants explains re.findall() →

Tiny Python Projects: Learn coding and testing with puzzles and games

re.findall() is a Python regular-expression function that returns all non-overlapping matches of a pattern in a string.

How it is used
Finds every placeholder in Mad Libs input so the program can request replacement values.
How deep it goes
Explains list and tuple results, capture-group ordering, and tuple unpacking, but defers broader regular-expression implementation details.
Examples
Demonstrates extracting adjective, noun, and preposition placeholders from a fox-themed Mad Libs sentence.
What you can do after
Apply it via Python's re module to extract repeated pattern matches and process captured values.

Read how Tiny Python Projects: Learn coding and testing with puzzles and games explains re.findall() →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.