Hello,

I do not understand the behaviour of this:

import re
re.search('(a)*','aaa').groups()
('a',)

I was thinking that the ``*'' will operate on the group delimited by the 
parenthesis. And so, I was expecting this result:
('a', 'a', 'a')

Is there something I'am missing ?

Ced.

-- 

Cedric BRINER
Geneva - Switzerland
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to