Vidyalelo
Python · Q16

Regular Expressions in Python

Programming · Python · question 16

Q16

What is the purpose of the re.DOTALL flag in Python?

A.
It makes the . character match any character, including newline
Answer
B.
It defines a new flag
C.
It converts strings to regular expressions
D.
It specifies a starting position

Answer: Option A

Solution

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