# "Find a < or </ followed by anything
# NOT a > and sub it with NOTHING."
$string =~ # store the results in $string:
s/ # substitute
< # A beginning tag carat alone or . . .
\/* # next to a closing slash if there is one (*)
([^>])+ # Followed by one or more of anything NOT a >.
> # Followed by end of tag.
//igx; # sub with nothing, case-insensitive, global, allow whitspace in regex.