I want to save just normal letters and apostrophes with re.sub command in Python, however right now my code removes apostrophes so don't becomes dont etc. Can i add a "save" of apostrophes to my re.sub command or do I have to use some other solution?
My code right now:
text = open("songs/"+artist+"/"+album+"/"+song, "r", encoding="latin-1")
lines = text.readlines()
for line in lines:
line = line.lower()
line = re.sub('[^a-z ]', '', line)
words = line.split(" ")