title: Passing string included dollar signs to -Replace Variable
body: <p>I am trying to replace a sentence in .config file using powershell.</p>
  
  <pre><code>${c:Web.config} = ${c:Web.config} -replace
  </code></pre>
  
  <p>'<code>$BASE_PATH</code>$\Test\bin`$Test_TYPE`$\WebTest.dll' , 'c:\program Files\example\webtest.dll'</p>
  
  <p>Everytime I try to run the above code I get </p>
  
  <blockquote>
    <p>"Invalid regular expression pattern:
    $BASE_PATH$\Test\bin\$Test_TYPE$\WebTest.dll"
    at c:\tests\runtesting.ps1 -replace
    &lt;&lt;&lt;&lt; 
    $BASE_PATH$\Test\bin\$Test_TYPE$\WebTest.dll</p>
  </blockquote>
  
  <p>If I don't use the backtick the dollar signs will disappear and some text.</p>
  
  <p>How would I pass dollar signs in a string to -replace?</p>