Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. url from the html data

url from the html data

Scheduled Pinned Locked Moved C / C++ / MFC
htmlquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    onlyjaypatel
    wrote on last edited by
    #1

    Can any body tell me how can i extract all the links from the html data. any standard protocol to get the link from the data. or all posible ways for url in the data absolute url or relative url.:((

    S R 2 Replies Last reply
    0
    • O onlyjaypatel

      Can any body tell me how can i extract all the links from the html data. any standard protocol to get the link from the data. or all posible ways for url in the data absolute url or relative url.:((

      S Offline
      S Offline
      shilianghui2
      wrote on last edited by
      #2

      you can use regular expression to extract the url from the html data.i have done this before but not in c++,just in java.

      O 1 Reply Last reply
      0
      • S shilianghui2

        you can use regular expression to extract the url from the html data.i have done this before but not in c++,just in java.

        O Offline
        O Offline
        onlyjaypatel
        wrote on last edited by
        #3

        hi thanx but i want it in vc++ any way thanx

        S G 2 Replies Last reply
        0
        • O onlyjaypatel

          hi thanx but i want it in vc++ any way thanx

          S Offline
          S Offline
          shilianghui2
          wrote on last edited by
          #4

          There are also some regex library in c++.

          1 Reply Last reply
          0
          • O onlyjaypatel

            Can any body tell me how can i extract all the links from the html data. any standard protocol to get the link from the data. or all posible ways for url in the data absolute url or relative url.:((

            R Offline
            R Offline
            Roger Broomfield
            wrote on last edited by
            #5

            Host the document in MSHTML and use the anchors property of the IHTMLDocument2 interface.

            1 Reply Last reply
            0
            • O onlyjaypatel

              hi thanx but i want it in vc++ any way thanx

              G Offline
              G Offline
              Gary R Wheeler
              wrote on last edited by
              #6

              The Boost library includes a very nice regular expression[^] library for use from C++. Documentation and examples are good. You can probably Google for a site that lists regular expressions for extracting information from HTML.


              Software Zen: delete this;

              Fold With Us![^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups