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.
In reply to Re: How to make only two of three substitutions?
by tommyw
in thread How to make only two of three substitutions?
by curtisb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |