PyDocs

Nav

Text Processing Services

match

re

function (source)
  • match(pattern, string, flags=0)
Try to apply the pattern at the start of the string, returning
a Match object, or None if no match was found.
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/match.
See Also
No see-alsos for re/match
0 Notes
No notes for match