Guest User

Untitled

a guest
Dec 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #! /usr/bin/env python3
  2.  
  3. import re
  4.  
  5. s = 'Hello!@#!%!#&&!*!#$#%@*+_{ world!'
  6. reg = re.compile('[^a-zA-Z ]')
  7. print(reg.sub('', s))
Add Comment
Please, Sign In to add comment