Message224487
Match objects have a .groups method:
>>> import re
>>> m = re.match(r'(\w+):(\w+)', 'qwerty:asdfgh')
>>> m.groups()
('qwerty', 'asdfgh')
>>> k, v = m.groups()
>>> k
'qwerty'
>>> v
'asdfgh' |
|
Date |
User |
Action |
Args |
2014-08-01 11:38:46 | mrabarnett | set | recipients:
+ mrabarnett, timehorse, ezio.melotti, moreati, MizardX, serhiy.storchaka |
2014-08-01 11:38:46 | mrabarnett | set | messageid: <1406893126.44.0.289883148651.issue9529@psf.upfronthosting.co.za> |
2014-08-01 11:38:46 | mrabarnett | link | issue9529 messages |
2014-08-01 11:38:46 | mrabarnett | create | |
|