Advertisement
here2share

# partial.py

Sep 15th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. # partial.py
  2. from functools import partial
  3. import re
  4. findNums = partial(re.findall, r'\d+')
  5. print findNums("abc123_456,7xyz8.9")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement