I have a file that is mixed with both normal text I need and html-tags. I know that with REGEX it is possible to recognize html tags and with sed one can swap those for an empty string, but I do not know how to apply it concretely.
As long as your HTML tags are confined to a single line, the following will work:
If you are not insisting on
sed, the best thing to do this would be
lynx --dump <filename>.html
This will output the content of the html file in the format the html code was intending to display. The only condition is that the filename should have a