$str="a\\b\\c.mp3 d\\e.mp3";
preg_match_all("/([^\\]*)\\([^\\\]*)\.mp3/isU",$str,$str);
print_r($str);Array
(
[0] => Array
(
[0] => c.mp3
[1] => e.mp3
) [1] => Array
(
[0] => c
[1] => e
))既然他说是第二个]附近有问题,那么就象上面那样改一下。php变的越来越不稳定了
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: missing terminating ] for character class at offset 20 in
preg_match_all("/([^\\]*)\\([^\\\]*)\.mp3/isU",$str,$str);
print_r($str);Array
(
[0] => Array
(
[0] => c.mp3
[1] => e.mp3
) [1] => Array
(
[0] => c
[1] => e
))既然他说是第二个]附近有问题,那么就象上面那样改一下。php变的越来越不稳定了
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: missing terminating ] for character class at offset 20 in
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货