Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import string
  2. import re
  3.  
  4. # This will be the contents of the variable referenced
  5. print(string.printable)
  6.  
  7. # This is what happens after all those characters are escaped by re
  8. print(re.escape(string.printable)
  9.  
  10. # This is the whole value you are giving to re.compile (the re_print):
  11. print('[^%s]' % re.escape(string.printable))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement