Examveda

What is the output of the following code:
import re
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


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python