Vidyalelo
Python · Q33

Regular Expressions in Python

Programming · Python · question 33

Q33

Which of the following will result in an error?

A.
>>> p = re.compile("d")
>>> p.search("door")
B.
>>> p = re.escape(‘hello’)
C.
>>> p = re.subn()
Answer
D.
>>> p = re.purge()

Answer: Option C

Solution

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