I want to try to make some more types of regex, so I have been trying to make the following work.
Here is my expression: https://regex101.com/r/VzspFy/4/
On the test strings, the very first 3 are good, so patterns like that must be matched, the problem is the last one, which I don't want to be included, so I tried to do this:
https://regex101.com/r/9HVKTK/2
and this:
https://regex101.com/r/9HVKTK/1
But no luck!
The main idea is:
`aaa ... bbb ccc` -> must match
`ccc ... (aaa|ddd|eee) ... bbb ccc` -> should not match
How can I make it work or maybe some better implementation?