Extracting HREFs from HTML?

Do you know examples of extracting hrefs (links) from html doc ? Regx or some package?

Thanks, Paul