Examveda

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: Option D


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python