Advertisement
oylenshpeegul

Unicode d

Aug 19th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. $ python2 -c 'import re, sys; print(re.findall(r"\d", sys.argv[1]))' 123٤٥٦
  2. ['1', '2', '3']
  3.  
  4. $ python3 -c 'import re, sys; print(re.findall(r"\d", sys.argv[1]))' 123٤٥٦
  5. ['1', '2', '3', '٤', '٥', '٦']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement