Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # regex_backslash_one.py
- import re
- def regex(test):
- print test, '=', bool(re.findall(r'(\d)\1{3}',test))
- #
- regex('120003')
- regex('1200003')
- regex('12000003')
- # target = '0000'+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement