in reply to Re: regex (between two words)
in thread regex (between two words)

If there is more than one aaa this approach would try to match all possible combination intervals, right?

Not sure if the OP only wants to start from the first aaa

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^3: regex (between two words)
by tybalt89 (Monsignor) on Feb 09, 2020 at 23:23 UTC

    All possible combinations, yes.

    This solution *is* correct because it passes all the provided test cases. (hehehe)