Examveda

What will be the output of the following Python code?
s = 'welcome home'
m = re.match(r'(.*)(.*?)', s)
print(m.group())

A. ('welcome', 'home')

B. ['welcome', 'home']

C. welcome home

D. ['welcome' // 'home' ]

Answer: Option C


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

Join The Discussion

Related Questions on Regular Expressions in Python