title: how to use preg_replace to remove all following style tag/pattern occurrences in a string?
body: <p>I am trying to find a regex to match the following:</p>
  
  <pre><code>&lt;style type="text/css"&gt; .article-content{ position: relative;
  
  padding-bottom: 140px;} .pane.pane-newsletter-contextual{ display: block;
  
  bottom: 32px; position: absolute; left: 0px; margin-left: 0px; } &lt;/style&gt;
  </code></pre>
  
  <p>I need the regex in order to pass it to preg_replace and remove it from a string.  I have basic knowledge of regex and tried this after reviewing the basic on <a href="http://www.regular-expressions.info/examples.html" rel="nofollow">http://www.regular-expressions.info/examples.html</a></p>
  
  <pre><code>preg_replace("/&lt;style\b[^&gt;]*&gt;(.*?)&lt;/style&gt;/", "", $body);
  </code></pre>
  
  <p>However this line is giving the following error <code>Unknown modifier 't' in ...</code></p>
  
  <p>Also, I tried searching before positing the question and could not find any that is similar. </p>