title: Strip String after or before certain word vb.net
body: <p>I want to cut a string and take what is before a certain word and what is after a certain word.</p>
  
  <p>Example:</p>
  
  <pre><code>Dim string As String = "Dr. John Smith 123 Main Street 12345"
  Dim cut_at As String = "Smith"
  Dim string_before, string_after As String
  
  --cutting code here--
  
  string_before = "Dr. John "
  string_after = " 123 Main Street 12345"
  </code></pre>
  
  <p>How would I do this in vb.net?</p>