What does the function re.match do?
A. matches a pattern at the start of the string
B. matches a pattern at any position in the string
C. such a function does not exist
D. none of the mentioned
Answer:A
What does the function re.match do?
A. matches a pattern at the start of the string B. matches a pattern at any position in the string C. such a function does not exist D. none of the mentioned
Explanation: It will look for the pattern at the beginning and return None if it isn’t found.