MCPcopy Index your code
hub / github.com/python/cpython / findall

Function findall

Lib/re/__init__.py:272–280  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

270split.__text_signature__ = '(pattern, string, maxsplit=0, flags=0)'
271
272def 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
282def finditer(pattern, string, flags=0):
283 """Return an iterator over all non-overlapping matches in the

Callers

nothing calls this directly

Calls 2

_compileFunction · 0.70
findallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…