in reply to How to make only two of three substitutions?
Oh well, if everybody's joining in:
which will remove an unlimited number of extra slashes.s|/{2,}|/|;
And if you've got multiline strings: s|(?:/\n){2,}|/\n|;
--
Tommy
Too stupid to live.
Too stubborn to die.
|
|---|