Results 1 to 4 of 4

Thread: [RESOLVED] Extract Hyperlink Text between <a> tags - VB6

  1. #1

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Resolved [RESOLVED] Extract Hyperlink Text between <a> tags - VB6

    Hey!

    How can I extract the Hyperlink Text from the source code of a page ?

    <a href="http://link.songs.pk/song1.php?songid=7553">
    Ai Khuda</a>

    I want to Extract the text between the MULTIPLE <a> tags on the webpage! In this case it is "Ai Khuda".

    Here I am facing a problem as the href changes with every <a> tag !

    Please Help
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  2. #2
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Extract Hyperlink Text between <a> tags - VB6

    Search something like GetBetween in the forums you will find plenty of posts about what you asked.
    These are a few:
    http://www.vbforums.com/showthread.php?t=570460
    http://www.vbforums.com/showthread.php?t=530464
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  3. #3

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: Extract Hyperlink Text between <a> tags - VB6

    Hey Thanks !

    I was wondering if I could search for the caption given the link...!!??

    As in..I kno the href(http://link.songs.pk/song1.php?songid=7553), is there a way where I can get the caption of the hyperlink. i.e Ai Khuda ??

    ShouldI make this a new post !!?? :P
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  4. #4

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: Extract Hyperlink Text between <a> tags - VB6

    Hey Figured that out myself. Thanks for the help !
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width