in reply to Re: Removing HTML Tags from a file
in thread Removing HTML Tags from a file

Your regex will fail in all, but the most trivial cases. It fails when < is used to not start a tag, and it fails when > is used inside an attribute value, or inside a comment. If you have to do it with a regex, use something like (untested):
s{<[a-zA-Z][^>'"]*(?:(?:'[^']*'|"[^"]*")[^>'"]*)*> # Tags |<!(?:--[^-]*(?:-[^-]+)*--\s*)*> # Comments }{" " x length $&}xeg