I have a string "A.B.C one two three."
I have a task to tokenize this string into ["A.B.C", one, two, three], neglecting the period at the end of the sentence. I'm having trouble removing the period at the end of the sentence by itself without interfering with the A.B.C acronym.
Is there a way for me to remove just periods at the end of a sentence without affecting acronyms using python regexs?
s.rstrip('.')is a quick answer, though perhaps not the best depending on exactly what you need to do.["A.B.C", "one", "two", "three"](note the quotes)