title: Remove style tag from a text file with regex
body: <p>I need to remove style tags from text file..</p>
  
  <p>I tried the following code</p>
  
  <pre><code>String text = readFile("E:/textwithstyletags.txt");
  retVal = text.replaceAll("&lt;style(.+?)&lt;/style&gt;", "");
  </code></pre>
  
  <p>it works when the text file has style tags without new lines
  i.e. <code>&lt;style&gt; body{ color:red; } &lt;/style&gt;</code></p>
  
  <p>It doesn't work when there are new lines, like this</p>
  
  <pre><code>&lt;style&gt; 
  body{ 
  color:red; 
  } 
  &lt;/style&gt;
  </code></pre>