I want to capture the words after me_start:
pattern with the following with regular expression me_start: ([\s\S]{1,})(?:end_1|end_2|end3)
and till any of the described words in this OR list will be found. But it works in other way and capture the longest possible group.
Example:
me_start: cat end_1 dog end_2
in this sentence I want to capture cat
word, but it catches cat end_1 dog
words.
How to make it in the way I need