Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # partial.py
- from functools import partial
- import re
- findNums = partial(re.findall, r'\d+')
- print findNums("abc123_456,7xyz8.9")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement