求一个正则匹配
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $s = 'E3ETC56-542NA1220156542N31036 3ZA0C0331'; preg_match_all('/([a-zA-Z0-9]\w{1})([\w|-]{10})\w\d(\d{4})|\w{5} \w{5}/', $s, $r); print_r($r);
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Array ( [0] => Array ( [0] => E3ETC56-542NA12201 [1] => 31036 3ZA0C ) [1] => Array ( [0] => E3 [1] => ) [2] => Array ( [0] => ETC56-542N [1] => ) [3] => Array ( [0] => 2201 [1] => ) )