title: pyparsing : group text between dates
body: <p>I have log files that contain a a date/time with a varied # of lines between the next date/time</p>
  
  <p>ex.</p>
  
  <p>time-date<br>
  2/07/18 13:55:00.983</p>
  
  <pre><code>msecVal = pyparsing.Word(pyparsing.nums, max=3)
  numPair = pyparsing.Word(pyparsing.nums, exact=2)
  dateStr = pyparsing.Combine(numPair + '/' + numPair + '/' + numPair)
  
  timeString = pyparsing.Combine(numPair + ':' + numPair + ':' +     numPair\               
         + '.' + msecVal)
  </code></pre>
  
  <p>log file will be</p>
  
  <pre><code>time:date:  line of text
      possible 2nd line of text
      possible 3rd line of text...
      time:date:  line of text
  time:date: line of text
      possible 2nd line of text
      possible 3rd line of text...
      possible &lt;n&gt; line of text...
  time:date:  line of text
  </code></pre>
  
  <p>Input will be a large text log file in the above format. I'd like to produce a list list of grouped elements </p>
  
  <pre><code>[[time],[all text until next time]],[[time],[all text until next time]...
  </code></pre>
  
  <p>I can do this if each time/date entry were a single line.. it's spanning between a random # of multiple lines until the next time/date entry I'm having problems with.</p>