title: powershell replace special characters
body: <p>I am farely new to powershell but I am trying to replace certain characters within .xml files. Looks like I stumble with the first steps already.</p>
  
  <p>e.g. I'll try to replace: </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  </code></pre>
  
  <p>with </p>
  
  <pre><code>&lt;?xml version="2.0"?&gt;
  </code></pre>
  
  <p>Below you'll find the code I wrote so  far:</p>
  
  <pre><code>Get-Childitem "C:\Users\jp\Desktop\Test" | ForEach-Object {
  
          $Content = Get-Content $_.fullname
          $Content = ForEach-Object { $Content -replace "(&lt;?xml version=`"1.0`"?&gt;)","(&lt;?xml version=`"2.0`"?&gt;)" }
  
          Set-Content $_.fullname $Content -Force
  
          }
  </code></pre>
  
  <p>The problem is that this is just the start of the strings I have to replace. Is there a way to replace any text within a certain range independent from the characters inside? </p>
  
  <p>I wonder how to replace a complete string no matter what special characters I have inside. 
  Thanks in advance.</p>