Regex olha para trás
(?<=123-)((apple|banana)(?=-456)|(?=456))
Fragile Gecko
(?<=123-)((apple|banana)(?=-456)|(?=456))
RegExp to find cat that is followed by dog
cat(?=dog)