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
1
22 (a) (i) Oxidised
I would like to capture the 21
and (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)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…