Created
April 13, 2018 12:44
-
-
Save Fhernd/691864ec1ba3cb40602517bf91865522 to your computer and use it in GitHub Desktop.
Búsqueda y reemplazo de texto sin tener en cuenta la capitalización. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
python = "PYTHON, python, Python" | |
print(re.findall('python', python, flags=re.IGNORECASE)) | |
print(re.sub('python', 'pitón', python, flags=re.IGNORECASE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment