in reply to search and replace frustration

You need to put quota-meta assertions around your regex. e:\svn is interpreted as e-colon-space-vn.

Write your regex as:

s/\Q$svnroot\E//i;

Note: this is probably not the best way to do what you are doing, but it answers the question of "Why doesn't this work?"