Examveda
Examveda

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

A. It compiles a regular expression pattern into a regular expression object

B. It converts strings to regular expressions

C. It defines a new class

D. It imports the re module

Answer: Option A


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python