extract links from html web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ulnanewbie
    New Member
    • Feb 2010
    • 5

    extract links from html web page

    i am trying to write a simple perl script to parse the HTML page.

    I need to extract the following:

    1. The complete path of each links in the page ( for example :http://www.test.us/testme.html instead of testme.html)

    2. The label of the link

    I do not want to use perl libraries.




    Please help.
  • RonB
    Recognized Expert Contributor
    • Jun 2009
    • 589

    #2
    Cross posted on several other forums and has been answered.

    The only thing I'll add is that doing this without perl modules is a very big mistake. Parsing html files with simple regex(s) is very fragile.

    Comment

    Working...