Vidyalelo
Python · Q89

Regular Expressions in Python

Programming · Python · question 89

Q89

Choose the function whose output can be: .

A.
>>> re.search('aaaa', "alohaaaa", 0)
Answer
B.
>>> re.match('aaaa', "alohaaaa", 0)
C.
>>> re.match('aaa', "alohaaa", 0)
D.
>>> re.search('aaa', "alohaaa", 0)

Answer: Option A

Solution

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