title: Backslashes in Powershell
body: <p>Why does the string for the -split parameter require two backslashes while the string for the -join parameter requires only one backslash? The backtick is the escape character in Powershell. What does a backslash preceding a character do for you?</p>
  
  <pre><code>$path = 'C:\folder\test\unit1\testing\results\report.txt'
  
  $path -split '\\' -notlike '*test*' -join '\'
  </code></pre>
  
  <p><a href="http://powershell.com/cs/blogs/tips/archive/2014/06/17/fun-with-path-names.aspx">http://powershell.com/cs/blogs/tips/archive/2014/06/17/fun-with-path-names.aspx</a></p>