PyDocs

Nav

Text Processing Services

Pattern.match

re

method of Pattern
  • Pattern.match(string[, pos[, endpos]])
prefixmatch($self, /, string, pos=0, endpos=sys.maxsize)
--

Matches zero or more characters at the beginning of the string.
Changed in 3.15
  • 3.15: Soft deprecated. match() has been soft deprecated in favor of the alternate prefixmatch() name of this API which is more explicitly descriptive. Use it to better express intent. The norm in other languages and regular expression implementations is to use the term match to refer to the behavior of what Python has always called search(). See prefixmatch() vs. match().
0 Examples
No examples for re/Pattern.match.
See Also
No see-alsos for re/Pattern.match
0 Notes
No notes for Pattern.match