--- Daniel Falkenberg <[EMAIL PROTECTED]> wrote:

> Hey All,
> 
> Just wondering how I would go about extracting all
> the data from heading 1 (h1) in the following HTML
> code.  I figured I could have used HTML::TableExtract
> but then I realized ( :) ) there are not tables in
> the following HTML.  Would I now have to go ahead and
> use HTML::parser or something of similar nature to
> extract headings?

Yes, unless its a "one off"... you are looking for:

<h1>I want all if this data extracted from heading 1
(h1)</h1>

which can be matched by the regular expression:

/<h1>([^<]*?)<\/h1>/

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to