That is what you told it to do... replace only the $group (if it occurs at the start of a line) with $newstring. Everything other than the "sbo" is left untouched.
Escaping :: doesn't make sense, and it doesn't need to be. Did you want to replace the whole line? If so you can do that with an if, or grab .* on the match side of your substitution.
In reply to Re: How do I escape a :: in s///?
by SuicideJunkie
in thread How do I escape a :: in s///?
by xjlittle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |