Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- python = "PYTHON, python, Python"
- print(re.findall('python', python, flags=re.IGNORECASE))
- print(re.sub('python', 'pitón', python, flags=re.IGNORECASE))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement