MCPcopy Index your code
hub / github.com/RustPython/RustPython / findall

Function findall

Lib/re/__init__.py:270–278  ·  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

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