title: RegEx for matching style tag
body: <p>I have an HTML code that contain CSS code inside  tag under the header tag. I want to use regex to extract all text in HTML, only pure text (between HTML tags ). I tried,</p>
  
  <pre><code>console.log(HTML_TEXT.replace(/(&lt;([^&gt;]+)&gt;)/g, ""))
  </code></pre>
  
  <p>which replace every thing between &lt;> by empty char, the problem is the CSS code inside STYLE tag is still there, so i want to know how to write the regular expression to remove CSS code inside  tags. </p>
  
  <p>How do I solve this problem? </p>