assuming the entire page content is in $page. A line by line approach like that in your original post will fail on tags that span multiple lines. The regexp above will break if you have unbalanced < or > inside of html tags, but may be good enough for your use.$page =~ s/<[^<>]*>//g; # Note the added < inside []
In reply to Re: Re: Re: Stripping of HTML content
by mp
in thread Stripping of HTML content
by Nemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |