title: How to get just the part around regex using powershell select string?
body: <p>I use select-string from powershell and it works nice, but sometimes I dont like that it gives me the entire line that matched because it contains (for me) unnecessary information.  </p>
  
  <p>Is there simple way to have it give me just 10 chars before regex, regex and 15 chars after? 
  example of how I use it now:</p>
  
  <pre><code>gci *.log | select-string "lastname"
  </code></pre>