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
Join The Discussion