<?php $re = '/^(\d+)[.\s-]+(.+)/m'; $str = '01.text 2 - something 3 more'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.