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

Function match

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

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

Callers 11

filterFunction · 0.85
filterfalseFunction · 0.85
fnmatchcaseFunction · 0.85
select_wildcardMethod · 0.85
select_recursiveMethod · 0.85
select_recursive_stepMethod · 0.85
matchMethod · 0.85
full_matchMethod · 0.85
verify_getbufMethod · 0.85
scanMethod · 0.85

Calls 2

_compileFunction · 0.70
matchMethod · 0.45

Tested by 2

verify_getbufMethod · 0.68