in reply to How to make only two of three substitutions?

Oh well, if everybody's joining in:

s|/{2,}|/|;
which will remove an unlimited number of extra slashes.

And if you've got multiline strings: s|(?:/\n){2,}|/\n|;

--
Tommy
Too stupid to live.
Too stubborn to die.