Kagee

Untitled

Feb 14th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. >>> s="abcØcba"
  2. >>> re.sub(r"Ø", "O", s)
  3. 'abcOcba'
  4. >>> s="abcØcba"
  5. >>> re.sub(r"[Ø]", "O", s)
  6. 'abcOOcba'
Advertisement
Add Comment
Please, Sign In to add comment