

InterviewSolution
Saved Bookmarks
1. |
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’)This question was addressed to me in an international level competition.I would like to ask this question from Regular Expressions topic in section Regular Expressions and Files of Python |
Answer» The correct CHOICE is (d) >>> re.match(‘ab*’, ‘BA’) |
|