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)
| 206 | return _compile(pattern, flags).split(string, maxsplit) |
| 207 | |
| 208 | def findall(pattern, string, flags=0): |
| 209 | """Return a list of all non-overlapping matches in the string. |
| 210 | |
| 211 | If one or more capturing groups are present in the pattern, return |
| 212 | a list of groups; this will be a list of tuples if the pattern |
| 213 | has more than one group. |
| 214 | |
| 215 | Empty matches are included in the result.""" |
| 216 | return _compile(pattern, flags).findall(string) |
| 217 | |
| 218 | def finditer(pattern, string, flags=0): |
| 219 | """Return an iterator over all non-overlapping matches in the |