Search/Replace Nested Tags
Is it possible to search and replace a tag based upon its parent tag?
Specifically, I'm editing tables, and I have a bunch where all of the head content (between the <thead> and </thead> tags) is tagged <td>, when I really need it to be <th>.
It's not as simple as just replacing all of the <td> tags. I only want to replace the ones inside the <thead>.
Maybe it's a regular expression, but dang if I can figure it out.

