Vidyalelo
Python · Q14

Regular Expressions in Python

Programming · Python · question 14

Q14

What is the output of the following code:import reresult = re.search(r'hello', 'Hello, world!', re.IGNORECASE)print(result.group())

A.
Hello
B.
An error will occur
C.
world
Answer
D.
Hello, world!

Answer: Option C

Solution

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