Which of the following functions returns a dictionary mapping group names to group numbers?
(a) re.compile.group
(b) re.compile.groupindex
(c) re.compile.index
(d) re.compile.indexgroup
I had been asked this question in exam.
The question is from Regular Expressions topic in section Regular Expressions and Files of Python