How can I use regex to replace any text between quotation marks for an operator -replace? I can make it work with static text, but it can be almost any text.
Example:
$filecontent -replace 'AssemblyCopyright("text")', 'AssemblyCopyright("Copyright © 2016 myCompany")' | Out-File $file
given there AssemblyCopyright("text")can actually be anything including blank
AssemblyCopyright("")
source
share