alexanderholt
10/25/2017 - 3:35 PM

RegEx remove puntuations

import re
# Use regular expressions to do a find-and-replace
string = re.sub("[^a-zA-Z]",           # The pattern to search for
                      " ",                   # The pattern to replace it with
                      example1.get_text() )  # The text to search
print(letters_only)