title: Getting all Regex matches to appear in Listbox, VB.NET
body: <p>I have a string, example below, where I am trying to use VB.NET to grab all the HotelNames in the string.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    Dim thepage As String = postreqreader.ReadToEnd
  
      Dim r As New Regex("""HotelName"":"".*""")
      Dim matches As MatchCollection = r.Matches(thepage)
      For Each hotelname As Match In matches
          ListBox1.Items.Add(hotelname.Value.Split("""").GetValue(3))
      Next
  </code></pre>
  
  <p>However this only adds the first HotelName to my ListBox. Any ideas how I can get each HotelName match into my listbox? Thanks for your time!</p>
  
  <p><em>shortened String:</em></p>
  
  <blockquote>
    <p>"HotelName":"Homewood Suites by Hilton Dallas-Arlington","HotelNameShort":"Homewood Suites by Hilton...","HotelNameShortAvailabilityRecommendations":"Homewood Suites by H...","HotelName":"Knights Inn Arlington","HotelNameShort":"Knights Inn Arlington","HotelNameShortAvailabilityRecommendations":"Knights Inn Arlingto...","HotelName":"Howard Johnson Express Inn - Arlington Ballpark / Six Flags","HotelNameShort":"Howard Johnson Express In...","HotelNameShortAvailabilityRecommendations":"Howard Johnson Expre...","HotelName":"Super 8 Arlington/SW","HotelNameShort":"Super 8 Arlington/SW","HotelNameShortAvailabilityRecommendations":"Super 8 Arlington/SW...",</p>
  </blockquote>