

InterviewSolution
Saved Bookmarks
1. |
Which of the following statements regarding the output of the function re.match is incorrect?(a) ‘pq*’ will match ‘pq’(b) ‘pq?’ matches ‘p’(c) ‘p{4}, q’ does not match ‘pppq’(d) ‘pq+’ matches ‘p’The question was posed to me in an online quiz.Question is taken from Regular Expressions topic in section Regular Expressions and Files of Python |
Answer» Right answer is (d) ‘pq+’ matches ‘p’ |
|