Examveda

What is the output of the following code:
import re
result = re.search(r'd{2}', 'There are 25 apples and 3 oranges.')
print(result.group())

A. 25

B. An error will occur

C. 2

D. 5

Answer: Option A


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

Join The Discussion

Related Questions on Regular Expressions in Python