I have a large file that I need to parse, but first I want to get rid of some extraneous tags. For example:
<GOODTAG>
Good stuff.
<TAG attribute="blah blah>
yadya yada yada <INNERTAG attribute="more blah" />
</TAG>
<GOODTAG>
I want to be left with just:
<GOODTAG>
Good stuff.
<GOODTAG>
The following regex isn't working:
<TAG\b[^>]*>(.*?)</TAG>
What am I doing wrong?