regular expression like this:
import re
p = re.match(r'([abc])+','abc')
p.group()
'abc'
p.groups()
('c',)
I am confused about the result of p.groups(). In my opinion, this regular expression may equal to r'(a)(b)(c)', thus the result of p.groups() may be ('a','b','c'). But it seems like that this expression equals to r'ab(c)', in which the result of p.groups() is ('c',). But why!? How can I understand r'([abc])+'? Help me please.