Results 1 to 4 of 4

Thread: Find text between text

Hybrid View

  1. #1

    Thread Starter
    Banned
    Join Date
    Feb 2009
    Posts
    15

    Re: Find text between text

    What I'm going to be use it for is this:
    I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.

    Please tell me how to do this.

    vb6hacker

  2. #2
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Find text between text

    Quote Originally Posted by vb6hacker
    What I'm going to be use it for is this:
    I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.

    Please tell me how to do this.

    vb6hacker
    The blank within the text appears to be a delimiter that you can look for to isolate the number you are searching for:
    Code:
    Dim MyText As String, MySearch() As String
    MyText = "Your production: 100 Lumber"
    MySearch = Split(MyText, Chr$(32))
    MsgBox MySearch(2)
    Doctor Ed

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