I'm looking for a clean way to grab and remove all the css between the <style></style> tags.
For example:
<style>
foo
</style>
content
<style>
bar
</style>
here
By the end of the process I should have a string with content\nhere (everything not between the style tags) and an array of matches between the style tags ['foo', 'bar'] or something similar. I've tried a lot of different regex approaches and none of the seemed to work for me. (I'm no regex pro though..)