I want to delete the classes that end with 'blue' from the class attribute on all tags
<p class="text_blue happy">this is blue text</p>
<p class="text_red nothappy">this is red text</p>
<img class="img_blue nothappy" />
This will give me all the elements with classes that end with 'blue'
how do I pop these matched classnames off of the class attribute?