Regex help needed - Get text from within a list

Dear Bubble,

I need help extracting text from within some text:

The input text will be formatted like:

1. Bubble is a
2. awesome way to 
3. learn Regex

or

1. Bubble is a 2. awesome way to 3. learn Regex

I need to extract the text between the numbers, and after the 3.

so output if the first would be:
Bubble is a

Any help would be much appreciated

All the best

Anuj

answer for anyone else

(?<=1.)[^2]+

Uses positive lookbehind

I wish I understood those hieroglyphics! :joy: regex is such a mystery to me

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.