title: Powershell, getting substring using regular expression and special characters
body: <p>I have to extract the user info from this line</p>
  
  <pre><code>"user/data ^`ms\john ^`Lorem Ipsum Lorem ^`Lorem Ipsum Lorem"
  </code></pre>
  
  <p>The pattern is that the info always comes between <code>"user/data ^</code>" and <code>"^</code>"</p>
  
  <p>The expected result is "ms\john"</p>
  
  <p>This is my attempt, </p>
  
  <pre><code>$line = "user/data ^`ms\john ^`Lorem Ipsum Lorem ^`Lorem Ipsum Lorem"
  if ($line -match "user/data(.*)")
  {
      write-host "found: $($matches[1])"
  } else {
      Write-Host "no found"
  }
  </code></pre>
  
  <p>I don't know how to add special characters in the regexp and extract "ms\john".</p>
  
  <p>Any comments are welcome.</p>