I have bee trying to create a exam paper parser. I am struggling to make a regular expression for capturing the question in-between 2 consecutive numbers.
Here is a sample of the paper:
21 (a) (i) Protons Neutrons Electrons
29 Si 14
22 (a) (i) Oxidised
I would like to capture the
(a) (i) Protons Neutrons Electrons 29 Si 14 16 14 1 in this example.
Here is my attempt https://regex101.com/r/dlESTV/3 I am finding this very difficult, because the expression will capture everything in-between the 21 and 29 (instead of 22)