Created
May 14, 2016 23:01
-
-
Save offby1/a90b92fa39ec6e806d1d5a688fe55741 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> [m.groups() for m in [re.match(r'abc(\d+)def', x) for x in ['abc14def', 'xyz38def', 'asdf', 'abc3def']] if m] | |
[('14',), ('3',)] | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment