Examveda

Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match='aaaa'>.

A. >>> re.search('aaaa', "alohaaaa", 0)

B. >>> re.match('aaaa', "alohaaaa", 0)

C. >>> re.match('aaa', "alohaaa", 0)

D. >>> re.search('aaa', "alohaaa", 0)

Answer: Option A


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

Join The Discussion

Related Questions on Regular Expressions in Python