Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # regex_case_insensitive.py
- import re
- print re.sub("(?i)hello","Thank You", "hello, HeLLo, HELLO !!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement