Advertisement
here2share

# regex_case_insensitive.py

Sep 9th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. # regex_case_insensitive.py
  2.  
  3. import re
  4. print re.sub("(?i)hello","Thank You", "hello, HeLLo, HELLO !!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement