If you are particularly worried about forward slashes then you can just use an alternate character to delimit the parts of the substitution.
e.g. single char s!!! or paired s()()
In reply to Re^3: how to overcome Win32 path delimiter in s///?
by inman
in thread how to overcome Win32 path delimiter in s///?
by bsdz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |