What does re.match() check in Python?
Correct answer
C. Whether the pattern matches at the beginning of the string
8 views
C. Whether the pattern matches at the beginning of the string
8 views
re.match anchors at the start; re.search scans the whole string.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.