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

Function match

tools/python-3.11.9-amd64/Lib/re/__init__.py:163–166  ·  view source on GitHub ↗

Try to apply the pattern at the start of the string, returning a Match object, or None if no match was found.

(pattern, string, flags=0)

Source from the content-addressed store, hash-verified

161# public interface
162
163def match(pattern, string, flags=0):
164 """Try to apply the pattern at the start of the string, returning
165 a Match object, or None if no match was found."""
166 return _compile(pattern, flags).match(string)
167
168def fullmatch(pattern, string, flags=0):
169 """Try to apply the pattern to all of the string, returning

Callers 6

filterFunction · 0.85
fnmatchcaseFunction · 0.85
matchMethod · 0.85
matchMethod · 0.85
scanMethod · 0.85
_resolve_modname_matcherFunction · 0.85

Calls 2

_compileFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected