Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import re
- # This will be the contents of the variable referenced
- print(string.printable)
- # This is what happens after all those characters are escaped by re
- print(re.escape(string.printable)
- # This is the whole value you are giving to re.compile (the re_print):
- print('[^%s]' % re.escape(string.printable))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement