title: Select-String returns multiple lines
body: <p>I'm learning PowerShell and want to match a string in a variable. Consider this example:</p>
  
  <pre><code>$string = ipconfig
  Select-String -InputObject $string -Pattern '127.0.0.1'
  </code></pre>
  
  <p>Returns the whole string. Not just <code>'127.0.0.1'.</code> So I tried:</p>
  
  <pre><code>Select-String -InputObject $string -SimpleMatch '127.0.0.1' -AllMatches
  </code></pre>
  
  <p>Which also returns the entire string. What am I doing wrong? I just want to see the match, not other lines.</p>