in reply to HTML Matching
$/ = undef; $_ = <STDIN>; s/<[^>]+?>//mg; print; [download]
His choice of character class [^>] matches anything _except_ the '>' character, that includes newlines.
Autark.