Vidyalelo
Python · Q84

Regular Expressions in Python

Programming · Python · question 84

Q84

Which of the following lines of code will not show a match?

A.
>>> re.match('ab*', 'a')
B.
>>> re.match('ab*', 'ab')
C.
>>> re.match('ab*', 'abb')
D.
>>> re.match('ab*', 'ba')
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board