title: Finding string after searched string in textbox
body: <p>I have been working an application that uses sockets to connect to a switch and issues commands. Afterwards the data read back from the switch is put in a text file and lines that contain a certain string, for this instance <code>"GE1"</code>, are placed in a textbox like the following.</p>
  
  <pre><code>GE1/0/1              UP   1G(a)   F(a)   A    101  To Station 1
  GE1/0/2              DOWN auto    A      A    1    To Station 2
  GE1/0/3              DOWN auto    A      A    1    To Station 3
  GE1/0/4              DOWN auto    A      A    1    To Station 4
  GE1/0/5              DOWN auto    A      A    1    To Station 5
  GE1/0/6              DOWN auto    A      A    1    To Station 6
  GE1/0/7              DOWN auto    A      A    1    To Station 7
  GE1/0/8              DOWN auto    A      A    1    To Station 8
    ---- More ----[16D                [16DGE1/0/9              DOWN auto    A      A    1    To Station 9
    ---- More ----[16D                [16DGE1/0/10             DOWN auto    A      A    1    To Station 10
    ---- More ----[16D                [16DGE1/0/11             DOWN auto    A      A    1    To Station 11
    ---- More ----[16D                [16DGE1/0/12             DOWN auto    A      A    1    To Station 12
    ---- More ----[16D                [16DGE1/0/13             DOWN auto    A      A    1    To Station 13
    ---- More ----[16D                [16DGE1/0/14             DOWN auto    A      A    1    To Station 14
    ---- More ----[16D                [16DGE1/0/15             DOWN auto    A      A    1    To Station 15
    ---- More ----[16D                [16DGE1/0/16             DOWN auto    A      A    1    To Station 16
    ---- More ----[16D                [16DGE1/0/17             DOWN auto    A      A    1    To Station 17
    ---- More ----[16D                [16DGE1/0/18             DOWN auto    A      A    1    To Station 18
    ---- More ----[16D                [16DGE1/0/19             DOWN auto    A      A    1    To Station 19
    ---- More ----[16D                [16DGE1/0/20             DOWN auto    A      A    1    To Station 20
    ---- More ----[16D                [16DGE1/0/21             DOWN auto    A      A    1    To Station 21
    ---- More ----[16D                [16DGE1/0/22             DOWN auto    A      A    1    To Station 22
    ---- More ----[16D                [16DGE1/0/23             DOWN auto    A      A    1    To Station 23
    ---- More ----[16D                [16DGE1/0/24             DOWN auto    A      A    1    To Station 24
    ---- More ----[16D                [16DGE1/0/25             DOWN auto    A      A    1    To Station 25
    ---- More ----[16D                [16DGE1/0/26             DOWN auto    A      A    1    To Station 26
  </code></pre>
  
  <p>The problem is the following: I want to take the different text after the GE1/0/? and have each individual text applied to labels so the info is viewable on a small form. </p>
  
  <p>example:</p>
  
  <pre><code>Label1 = "UP" 
  Label2 = "1G(a)
  'and so on until it reads to the end of the line before moving to the next line and
  'repeating with the next group of labels. 
  </code></pre>
  
  <p><em>Note that the information will whether if something is connected to the stations or not.</em></p>
  
  <p>On a side note: I have tried using <code>Textbox1.text = Textbox1.text.Replace("  ---- More ----[16D         [16D", "")</code> with and without <code>.Trim</code> but it does not remove the text. Suggestions?</p>