That's what I thought of too. See Re: Replace all occurrences but the last.
In reply to Re^2: Removing dots by ambrus in thread Removing dots by Anonymous Monk