Return a list of all non-overlapping matches in the string. If one or more capturing groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result.
(pattern, string, flags=0)
| 270 | split.__text_signature__ = '(pattern, string, maxsplit=0, flags=0)' |
| 271 | |
| 272 | def findall(pattern, string, flags=0): |
| 273 | """Return a list of all non-overlapping matches in the string. |
| 274 | |
| 275 | If one or more capturing groups are present in the pattern, return |
| 276 | a list of groups; this will be a list of tuples if the pattern |
| 277 | has more than one group. |
| 278 | |
| 279 | Empty matches are included in the result.""" |
| 280 | return _compile(pattern, flags).findall(string) |
| 281 | |
| 282 | def finditer(pattern, string, flags=0): |
| 283 | """Return an iterator over all non-overlapping matches in the |