I have tried for an hour and I cannot figure this out myself, please help me if you could. I am trying to split the multiple-line text I copy from pdf file into note 1, 2, 3, and 4 ideally or 3 notes between 1. and 2., 2. and 3., and 3. and 4. should also work.
Using the pattern, I can get 4 matches but it only returns the first line of each note.
^\d{1,2}\.[ ][a-zA-Z](.*\n)
I tried to add something but it either returns error, nothing matched, or just 1 match.
Sample text:
1. SOMEONE SOMEONE SOMEONE
SOMEONE SOMEONE SOMEONE SOMEONE SOMEONE
SOMEONE SOMEONE SOMEONE SOMEONE SOMEONE
2. SOMETHING SOMETHING SOMETHING
SOMETHING SOMETHING SOMETHING SOMETHING SOMETHING SOMETHING
SOMETHING SOMETHING SOMETHING
SOMETHING SOMETHING SOMETHING
3. SOMEHOW SOMEHOW
SOMEHOW SOMEHOW SOMEHOW SOMEHOW SOMEHOW
4. SOMEWHERE SOMEWHERE SOMEWHERE SOMEWHERE