Vidyalelo
Python · Q6

Regular Expressions in Python

Programming · Python · question 6

Q6

What does the findall() function in the re module do?

A.
It finds all occurrences of a pattern in a string and returns them as a list
Answer
B.
It converts strings to regular expressions
C.
It searches for a match anywhere in the string
D.
It checks if a string contains a specific character

Answer: Option A

Solution

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