I'm new to python, coming from a basic knowledge of perl. I'm trying to capture a substring with regex.
>>> a='Question 73 of 2943'
>>> import re
>>> re.match("Question.*(\d+)\s+of", a).group(0)
'Question 73 of'
>>> re.match("Question.*(\d+)\s+of", a).group(1)
'3'
What I wanted to do was to catch 73 in the group. I assumed that the parenthesis would do that.