title: Replace string with backslash
body: <p>I have some XML files in a folder and I want to replace the path defined inside the files with a different one, so the original file contains:</p>
  
  <pre><code>&lt;Ruta MIMEType="application/pdf"&gt;\\srvfsrvivwsk02.preprod.corp\SDD\Cap_Incoming\example.pdf&lt;/Ruta&gt;
  </code></pre>
  
  <p>And the result should be:</p>
  
  <pre><code>&lt;Ruta MIMEType="application/pdf"&gt;\\srvfsrvivwsk35.preprod.corp\SDD2\Cap2_Incoming\Incoming2\example.pdf&lt;/Ruta&gt;
  </code></pre>
  
  <p>Im trying using the following command but it is not working:</p>
  
  <pre><code>a='\\srvfsrvivwsk02.preprod.corp\SDD\Cap_Incoming'
  b='\\srvfsrvivwsk35.preprod.corp\SDD2\Cap2_Incoming\Incoming2'
  
  sed -i 's/'$a'/'$b'/g' exaple.xml
  </code></pre>
  
  <p>It seems the backslashes don't work as expected. Could you please help me with this?</p>