title: Powershell .Replace RegEx
body: <p>RegEx for Replace is kicking my butt.  I am trying find: </p>
  
  <blockquote>
    <p>value="COM8"/></p>
  </blockquote>
  
  <p>in a text file and replace "COM8" with another com port (ie "COM9", "COM13", etc).</p>
  
  <pre><code>(Get-Content 'C:\Path\File.config').Replace('/".*?"', '"COM99"') | Set-Content 'C:\Path\File.config'
  </code></pre>
  
  <p>Thank you in advance for any help you can provide.</p>