MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / findall

Function findall

tools/python-3.11.9-amd64/Lib/re/__init__.py:208–216  ·  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

206 return _compile(pattern, flags).split(string, maxsplit)
207
208def 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
218def finditer(pattern, string, flags=0):
219 """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