title: Javascript Regex to target and remove a css rule from a style tag, based on its selector?
body: <p>What would be the regex I could use to completely remove a css rule from an inline stylesheet based on the selector that I provide, via javascript?</p>
  
  <p>For example, I get the contents of the style tag and it contains a rule:</p>
  
  <pre><code>.some_class
  {
      color: #FFF;
      font-style: italic;
  }
  </code></pre>
  
  <p>If i provide the selector '.some_class' what is the correct regex/js method that will find any occurrence of that selector and remove it, its associated brackets, and all the properties/values within those brackets</p>