Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4568580
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:05:48+00:00 2026-05-21T19:05:48+00:00

Im writing a program in VB.net that consists of three main steps: STEP 1:

  • 0

Im writing a program in VB.net that consists of three main steps:

STEP 1: Display the source code of a webpage that is streaming a movie on it in textbox1.

STEP 2: highlight the URL to that movie in the source code, and then display just the URL in textbox3.

STEP 3: Download that movie using HttpWebRequest and HttpWebResponse to a user defined directory

The problem is that i dont know how i would go about extracting the URL from the source code effectively. maybe i could try searching the source code for the string “.mp4” or “.avi” or other video extensions, but that would only find the end of the link, how would i highlight the whole link?

For example: if i searched the source code for “.mp4” and there was a URL such as

“http://megavideo.com/g7987bfd0fg.mp4”

then i would only get

“http://megavideo.com/g7987bfd0fg
.mp4“

i know there is some way to start at a certain character in a document and go forward or backward a few characters, but the problem arises when you dont know how many characters to go back due to varying lengths of URLs… is there some way that you could search for http:// and then search for .mp4 and then highlight everything in between them?

#EDIT# I also need to be able to feed this URL into another process that will download the file using “httpwebrequest” and “httpwebresponse” so it would be ideal if i could do something like:

textbox3.text = extracted link

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:05:49+00:00Added an answer on May 21, 2026 at 7:05 pm

    Your best bet is Regular Expressions. Get the app called RegexBuddy. It will help you write the regular expression for your needs

    Try this code

    Dim input As String= "Your initial page source that you want to search through"
    Dim pattern As String = "http\:\/\/[.]*\.mp4"
    
    Dim rgx As New Regex(pattern, RegexOptions.IgnoreCase)
    Dim matches As MatchCollection = rgx.Matches(input)
    If matches.Count > 0 Then
       For Each match As Match In matches
          DownloadVideo(match.Value)
       Next   
    End If 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a program that sends an email out at a client's specific local
If you are writing a program that is executable from the command line, you
I'm writing a program that uses SetWindowRgn to make transparent holes in a window
I am writing a program in Python that will act as a server and
I'm writing a program that contains a generational garbage collector. There are just two
I am writing a program that will draw a solid along the curve of
I'm writing a program in .net where the user may provide a large number
Lets say that I am writing a program that supports plugins and I write
I am writing a program (.net) to create a stadium style layout and need
I am writing a .NET library that for various reasons cannot be registered in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.