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

Function search

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

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

Callers 1

test_searchMethod · 0.85

Calls 2

_compileFunction · 0.70
searchMethod · 0.45

Tested by 1

test_searchMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…