title: replacing regex in java string, which contains `&#xA;` symbol
body: <p>I have to replace the content of this xml string through java</p>
  
  <pre><code>&lt;My:tag&gt;value_1 22&amp;#xA;value_2 54&amp;#xA;value_3 11&lt;/My:tag&gt;
  </code></pre>
  
  <p>so, this string has been taken from an xml and when I acquire it I have this result:</p>
  
  <pre><code>&lt;My:tag&gt;value_1 22
  value_2 54
  value_3 11&lt;/My:tag&gt;
  </code></pre>
  
  <p>If I try to replace the content by this way:</p>
  
  <pre><code>String regex =  "(&lt;My:tag&gt;)(.*)(&lt;/My:tag&gt;)";
  String new_string = old_string.replaceAll(regex,"&lt;My:tag&gt; new_stuff &lt;/My:tag&gt;");
  </code></pre>
  
  <p>I get no result. I think because of the <code>&amp;#xA;</code> symbol</p>
  
  <p>but if I try to replace the string without the <code>&amp;#xA;</code> symbol, everything goes fine.</p>
  
  <p>Suggestions?
  Thanks</p>