不行的,可以写个简单例子:<?php$str = '0,1,05,55,211,227';if ( preg_match_all('/1\d{1,2}|2[01][0-9]|22[0-7]|[1-9][0-9]|[1-9]/', $str, $match) ) print_r($match);?>