Vidyalelo
Python · Q51

Regular Expressions in Python

Programming · Python · question 51

Q51

Which of the following functions returns a dictionary mapping group names to group numbers?

A.
re.compile.group
B.
re.compile.groupindex
Answer
C.
re.compile.index
D.
re.compile.indexgroup

Answer: Option B

Solution

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