moliware/dicts — pull request #7 by fjavieralba (2012-07-03 09:36:03+00:00)
Title: re flags in RegexpDict

I've added the option to pass re flags to Regexp Dict.

This is an example with re.I: (but you could add several flags at one time)

```python
>>> rd = dicts.RegexpDict({'a': 'lower', 'A': 'UPPER'})
>>> rd['a']
['lower']
>>> rd['A']
['UPPER']
>>> rd = dicts.RegexpDict({'a': 'lower', 'A': 'UPPER'}, re.I)
>>> rd['a']
['lower', 'UPPER']
>>> rd['A']
['lower', 'UPPER']
```