Use regex to replace multiple separators.