title: Powershell: how to replace quoted text from a batch file
body: <p>I have a text file that contains:</p>
  
  <pre><code>#define VERSION "0.1.2"
  </code></pre>
  
  <p>I need to replace that version number from a running batch file.</p>
  
  <pre><code>set NEW_VERSION="0.2.0"
  
  powershell -Command "(gc BBB.iss) -replace '#define VERSION ', '#define VERSION %NEW_VERSION% ' | Out-File BBB.iss"
  </code></pre>
  
  <p>I know that my match pattern is not correct. I need to select the entire line including the "0.2.0", but I can't figure out how to escape all that because it's all enclosed in double quotes so it runs in a batch file.</p>
  
  <p>I'm guessing that [0-9].[0-9].[0-9] will match the actual old version number, but what about the quotes?</p>