title: Replacing escape characters in Powershell
body: <p>I have a string that consists of </p>
  
  <pre><code>"some text \\computername.example.com\admin$".
  </code></pre>
  
  <p>How would I do a replace so my final result would be just "computername"</p>
  
  <p>My problems appears to not knowing how to escape two backslashes. To keep things simple I would prefer not to use regexp :)</p>
  
  <p>EDIT: Actually looks like stackoverflow is having problems with the double backslash as well, it should be a double backslash, not the single shown</p>