I was trying with the positive lookahead thing but I just didn't get it.
In reply to Re^2: Replace all occurrences but the last by kiat in thread Replace all occurrences but the last by kiat