<?php $re = '/(?!^)\b(?=[0-9]+g|A handful)/'; $str = '35g walnut halves A handful of thyme leaves 200g portobello mushrooms 200g white mushrooms 200g chifferini pasta 100g Petit Brebis sheep\'s cheese 40g honey'; print_r(preg_split($re, $str));
You have javascript disabled. You will not be able to edit any code.