title: RegEx Substring Extraction Powershell
body: <p>How do i extract the first instance of the below pattern from string.</p>
  
  <pre><code>$a="CIC-284 Updated code to reflect changes from Defect 46"
  
  $a -match "CIC-*"
  True
  </code></pre>
  
  <blockquote>
    <p>Expected result :  CIC-284 from the string using powershell.</p>
  </blockquote>