Python re.findall() Method
The re.findall() method returns a list of all matches in the string.
Syntax
re.findall(pattern, string, flags=0)
Parameters
| Parameter | Description |
|---|---|
pattern | Required. The regex pattern. |
string | Required. The string to search. |
Return Value
A list of all matches.
Example
Output
Click Run to execute your code