Vidyalelo
Python · Q54

Regular Expressions in Python

Programming · Python · question 54

Q54

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'
Answer

Answer: Option D

Solution

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