adplus-dvertising
frame-decoration

Question

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’

Posted under Python

Answer: (d).‘pq+’ matches ‘p’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements regarding the output of the function re.match is incorrect?