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

Function search

Lib/re/__init__.py:174–177  ·  view source on GitHub ↗

Scan through string looking for a match to the pattern, returning a Match object, or None if no match was found.

(pattern, string, flags=0)

Source from the content-addressed store, hash-verified

172 return _compile(pattern, flags).fullmatch(string)
173
174def search(pattern, string, flags=0):
175 """Scan through string looking for a match to the pattern, returning
176 a Match object, or None if no match was found."""
177 return _compile(pattern, flags).search(string)
178
179class _ZeroSentinel(int):
180 pass

Callers

nothing calls this directly

Calls 2

_compileFunction · 0.70
searchMethod · 0.45

Tested by

no test coverage detected