Results 1 to 3 of 3

Thread: [RESOLVED] String Manipulation

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2007
    Posts
    228

    Resolved [RESOLVED] String Manipulation

    Hi Guys

    I'm recieving some data off the internet using the WebRequest and inserting this data into a vairable. The data will look something like this.

    12433<BR>http://www.mysite.com/dffaf/mypic.jpg<br>tewwetttet

    After this has ben inserted into a variable, i need to read only the website.

    How can i do this?

    I don't know what the site will be but i do know it will start with http and end with .jpg

  2. #2
    Lively Member Shardox's Avatar
    Join Date
    Nov 2006
    Location
    Barcelona, Spain
    Posts
    123

    Re: String Manipulation

    You can do something like this:

    Strings Code:
    1. Dim st as String
    2. Dim stURL as String
    3. st = "12433<BR>http://www.mysite.com/dffaf/mypic.jpg<br>tewwetttet"
    4.  
    5. stURL = st.Substring(Strings.InStr(st, "http:") - 1, Strings.InStr(st, ".jpg") - Strings.InStr(st, "http:") + 4)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2007
    Posts
    228

    Re: String Manipulation

    Thank you. exacly what im looking for.

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