I need to split 1/2 chicken/ greens/egg/tomato/blue cheese/bacon
for /
only if the /
is surrounded by [a-z ]
and not by numbers
I have tried:
#[^0-9]\/[^0-9]#i
#[a-z ]\/[a-z ]#i
#(?:[a-z ])\/(?:[a-z ])#i
But it capture also the text
(If it matters, I am using preg_split
in PHP where the modifier g
is always implicitly used)