Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- real_comp = re.compile(r'[0-9]*')
- real_comp .search('+123i').group()
- Out[7]: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement