Vidyalelo
Python · Q65

Regular Expressions in Python

Programming · Python · question 65

Q65

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

A.
It searches for a match anywhere in the string
Answer
B.
It converts strings to regular expressions
C.
It finds all occurrences of a pattern in a 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