Hello

It seems the grouping feature isn't behaving correctly.

In [1]: a = 'dfsf.oct.ocfe'

In [2]: b = re.match(r'^(.*?)\.', a); b.group()
'dfsf.'

The expected result is 'dfsf'. Why did the regexp grab that period at
the end?

David

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to