title: Splitting multiline string into groups based on a regex pattern
body: <p>I have a multiline string that I want to split wherever a new line starts with a digit.</p>
  <p>So this:</p>
  <pre><code>1:53|18
  -:
  -:
  R:
  -:
  R:
  -:24|18
  -:
  -:
  R:
  -:
  -:
  R:
  -:
  -:
  L:
  -:
  L:49|1
  -:
  -:
  -:
  2:44|18
  L:
  L:
  2:45|16
  -:
  -:
  -:
  -:
  </code></pre>
  <p>Becomes this:</p>
  <pre><code>Group 1:
      1:53|18
      -:
      -:
      R:
      -:
      R:
      -:24|18
      -:
      -:
      R:
      -:
      -:
      R:
      -:
      -:
      L:
      -:
      L:49|1
      -:
      -:
      -:
      
  Group 2:
      2:44|18
      L:
      L:
      
  Group 3:
      2:45|16
      -:
      -:
      -:
      -:
  </code></pre>
  <p>I am trying to build a regex that will match each group, but am having difficulties with either capturing too little (because of newline issues) or capturing too much.</p>
  <p>The best I could do is: ^\d.(\n|.)*?  (<a href="https://regex101.com/r/I1q7Xl/1" rel="nofollow noreferrer">https://regex101.com/r/I1q7Xl/1</a>)</p>
  <p>Any help greatly appreciated.</p>