Return an iterator over all non-overlapping matches in the string. For each match, the iterator returns a Match object. Empty matches are included in the result.
(pattern, string, flags=0)
| 278 | return _compile(pattern, flags).findall(string) |
| 279 | |
| 280 | def finditer(pattern, string, flags=0): |
| 281 | """Return an iterator over all non-overlapping matches in the |
| 282 | string. For each match, the iterator returns a Match object. |
| 283 | |
| 284 | Empty matches are included in the result.""" |
| 285 | return _compile(pattern, flags).finditer(string) |
| 286 | |
| 287 | def compile(pattern, flags=0): |
| 288 | "Compile a regular expression pattern, returning a Pattern object." |