What is the output of the following code:
import re
result = re.search(r'hello', 'Hello, world!', re.IGNORECASE)
print(result.group())
result = re.search(r'hello', 'Hello, world!', re.IGNORECASE)
print(result.group())
A. Hello
B. An error will occur
C. world
D. Hello, world!
Answer: Option C

Join The Discussion