e.g. like this

```
>>> re.match("^(.*\.)?(.*?)$", "Foo").groups()
(None, 'Foo')
>>> re.match("^(.*\.)?(.*?)$", "bar.Foo").groups()
('bar.', 'Foo')
```