in reply to Dealing with Word Compact HTML

If you'd want to commit a cardinal sin you could try something like:
perl -0777 -ne 'print "$1\n" while(/<b>((.|\n|\r|)*?)<\/b>/gm);' test. +html
But for more than a quick hack I'd go with the solutions already offered.

Update: to address seattlejohn's <b name=value> problem you could use:
perl -0777 -ne 'print "$1\n" while(/<b\b.*?>((.|\n|\r|)*?)<\/b>/gm);' +test.html
I think there will be lots of other situations where this oneliner won't match, and thats exactly the point why you should use a descent parser.