Web Analytics

Python re.findall() Method

Regular Expressionsโ€ขFind All

The re.findall() method returns a list of all matches in the string.

Syntax

re.findall(pattern, string, flags=0)

Parameters

ParameterDescription
patternRequired. The regex pattern.
stringRequired. The string to search.

Return Value

A list of all matches.

Example

Output
Click Run to execute your code

Related Functions