title: Matching Variables using Powershell Match
body: <p>I need to parse some config files and find a match. I've simplified the problem to this. Why doesn't powershell match the backslash even when it's been escaped? It works if I remove the backspace from the code below.</p>
  
  <p>Find $b in $a:</p>
  
  <pre><code>$a="lorum [\test] ipsum"
  $b="[\test]" 
  
  ([regex]::Escape($a )) -match ([regex]::Escape($b))
  </code></pre>