I need to find a match within the delimited string if the following two words appear between the pipes: apple and red
Example string 1 (should give a match):
|big blueberries blue|awesome lemon yellow|apple nice delicious red|
Example string 2 (should not give match):
|big blueberries apple|awesome lemon yellow|nice delicious red|
RegEx tried:
^.*?apple.*?red.*?
Which (kind of) works, but not sure how to include the pipe logic i.e. search between pipes.