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