title: Powershell get specific word from textfile using -match
body: <p>I have here line of code to search for specific word and output the line which this word is into.</p>
  
  <pre><code>Get-Content -path "C:\Apps\CamstarPerMon_logs\GetEqStatus - $getdate.log" | % {if($_ -match 'ms') {Write-Host $_}}
  </code></pre>
  
  <p>can i output specific line with specific single 'ms' word in it? because the output i get are:</p>
  
  <pre><code>INF: 2019-09-23 05:50:04.674 | Server1 | ID:12395msrh0000
  INF: 2019-09-23 05:50:04.721 | Server1 | 47 ms
  INF: 2019-09-23 05:50:05.252 | Server2 | ID:12395msrh0x9c
  INF: 2019-09-23 05:50:05.346 | Server2 | 94 ms
  </code></pre>
  
  <p>because the ID also have 'ms' keyword in it.</p>
  
  <p>I want an output strictly only for this:</p>
  
  <pre><code>INF: 2019-09-23 05:50:04.721 | Server1 | 47 ms
  INF: 2019-09-23 05:50:05.346 | Server2 | 94 ms
  </code></pre>
  
  <p>is this possible for -match? thanks!</p>