title: Remove XML Tag and Content in XML String using Java Regex
body: <p>I have a XML String of 400 lines and it does consists of below tags repeated twice. I want to remove those tags</p>
  
  <pre><code>&lt;Address&gt;
  &lt;Location&gt;Beach&lt;/Location&gt;
  &lt;Dangerous&gt;
      &lt;Flag&gt;N&lt;/Flag&gt;
  &lt;/Dangerous&gt;
  &lt;/Address&gt;
  </code></pre>
  
  <p>I am using the below regex pattern but it's not replacing</p>
  
  <p><code>xmlRequest.replaceAll("&lt;Address&gt;.*?&lt;/Address&gt;$","");</code></p>
  
  <p>I can able to do this in Notepad ++ by selecting <code>[x].matches newline</code> checkbox next to <code>Regular Expression</code> radio button in Find/Replace dialog box</p>
  
  <p>Can anyone suggest what's wrong with my regular expression</p>