title: Using regular expression to remove unnecessary XML tags
body: <p>I have an XML file that I want to format an XML file to remove tags like "<code>&lt;scientific_max&gt;&lt;/scientific_max&gt;</code>".
  I used that code but it didn't work</p>
  
  <pre><code>String regex = "&lt;([a-z_]+)&gt;&lt;/($1)&gt;";
  result = result.replaceAll(regex, "");
  </code></pre>
  
  <p>Have a nice day!</p>