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

Function search

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

171 return _compile(pattern, flags).fullmatch(string)
172
173def search(pattern, string, flags=0):
174 """Scan through string looking for a match to the pattern, returning
175 a Match object, or None if no match was found."""
176 return _compile(pattern, flags).search(string)
177
178def sub(pattern, repl, string, count=0, flags=0):
179 """Return the string obtained by replacing the leftmost

Callers 2

expandvarsFunction · 0.50
test_searchMethod · 0.50

Calls 2

_compileFunction · 0.70
searchMethod · 0.45

Tested by 1

test_searchMethod · 0.40