Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. >>> import re
  2.  
  3. >>> input1 = 3787381001
  4. >>> pattern = re.compile('[10*1]')
  5.  
  6. >>> pattern.search(input1)
  7.  
  8. Traceback (most recent call last):
  9. File "<pyshell#8>", line 1, in <module>
  10. pattern.match(input1)
  11. TypeError: expected string or bytes-like object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement