<?php $re = '/\b\d+(?:\h+[A-Za-z]+)+\b/'; $str = '12 Cheeseburger bacon 2 Chips 3 Coke'; preg_match_all($re, $str, $matches); print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.