<?php $pattern = '# \w*([0-9]{1}) (\w+)#'; $string = "PHP5 released PHP6 not released"; preg_match_all($pattern, $string, $matches); print_r($matches[1]);
You have javascript disabled. You will not be able to edit any code.