I have a list of names here
apple.fruit
appleOrder2.fruit
orange.fruit
I want to extrat just the fruit name
expected
apple
apple
orange
I have the regex (.*)((Order)|(\.fruit))
that returns at position one,
apple
appleOrder2
orange
I think the \.
is messing up with Alternation character because when i did a test using
(.*)((Order)|(ge))
the alternation works fine returning at position 1
empty
apple
oran
Perl is being used