<?php $input = '1 foo 2 ba_r 3 foo bar 4 fo-o'; preg_match_all( '/(\d+)\s+(.*)/m', $input, $matches, PREG_SET_ORDER); print_r( $matches);
You have javascript disabled. You will not be able to edit any code.