in reply to Removing dots
If you want to remove all but the last dot, this node is about a very similar question: Replace all occurrences but the last.