Skip to content

Instantly share code, notes, and snippets.

@augustogoulart
Created January 7, 2017 16:34
Show Gist options
  • Select an option

  • Save augustogoulart/3256196c7e10c0981cb9df9779265fa1 to your computer and use it in GitHub Desktop.

Select an option

Save augustogoulart/3256196c7e10c0981cb9df9779265fa1 to your computer and use it in GitHub Desktop.
""
Remove os numeros das páginas que estão fora de posição no texto Madame Bovary.
"""
import re
import fileinput
for linha in fileinput.input("Madame-Bovary-Gustave-Flaubert.txt", inplace=True):
print(re.sub("\d+", "", linha))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment