I'd like to remove all from a string except alphabetic characters and periods. I made the below function in python. How would I extend the regex so periods are NOT stripped from the string? This needs to work for unicode strings.
def normalize(self, text):
text = re.sub(ur"(?u)[\W\d]+", ' ', text)
print text
return text