Vidyalelo
Python · Q2

Regular Expressions in Python

Programming · Python · question 2

Q2

What is the purpose of the re.compile() function in Python?

A.
It compiles a regular expression pattern into a regular expression object
Answer
B.
It converts strings to regular expressions
C.
It defines a new class
D.
It imports the re module

Answer: Option A

Solution

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