Mmkhajah wrote at Thu, 19 Sep 2002 19:47:53 +0200:
> I think this should work:
> $content =~ s/\<[^\>]+?\>//g;
^
The question mark isn't necessary as the character class
negates the >.
Cheerio,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
In a message dated 9/19/2002 11:54:45 AM Eastern Daylight Time,
[EMAIL PROTECTED] writes:
> I want to parse an HTML document to get out the simple text from it.
> I've tried with HTML::Parser, but with no success. The POD documentation is
> not very good and I haven't seen any assignment as $t
I think this should work:
$content =~ s/\<[^\>]+?\>//g;
- Original Message -
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 12:12 PM
Subject: Parsing an HTML document
> Hi all,
>
> I want
Hi all,
I want to parse an HTML document to get out the simple text from it.
I've tried with HTML::Parser, but with no success. The POD documentation is
not very good and I haven't seen any assignment as $text = ... to see how to
get the text.
I have the text of an HTML file in a $content string