Advertisement
Fhernd

busqueda-reemplazo-sin-capitalizacion.py

Apr 13th, 2018
2,094
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import re
  2.  
  3. python = "PYTHON, python, Python"
  4.  
  5. print(re.findall('python', python, flags=re.IGNORECASE))
  6.  
  7. print(re.sub('python', 'pitón', python, flags=re.IGNORECASE))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement