title: Find all the dates and time in a string using VB.net
body: <p>I have richtextbox with many lines and each line has 2 or less dates and times for example:</p>
  
  <pre><code>08/10/2015 09:16:27 | Starting the main loop
  08/10/2015 09:19:58 | Weight 
  08/10/2015 10:01:28 | 08/10/2015 10:01:28 | Exception occurred: Timed out.
  08/10/2015 11:13:02 | triggered
  08/10/2015 11:14:08 | 08/10/2015 11:14:57 | Exception occurred: Timed out.
  </code></pre>
  
  <p>What I want to do is to be able extract the date and time from each line and store them into two separate arrays, one for date and one for time.</p>
  
  <p>What I have managed to do is to find the total number of dates in a string  using the below code.</p>
  
  <pre><code>Dim totalDates As MatchCollection = Regex.Matches("string to search here", "[0-9]*/[0-9]*/[0-9]{4}")
  MessageBox.Show(totalDates.Count)
  </code></pre>
  
  <p>Is there a way to obtain the actually dates and time from the string?</p>
  
  <p>Thank You</p>