- 1
- 2
请问可以用正则匹配出来这样一段HTML代码吗?我不会写正则,去网上看了点基础教程,匹配出来的结果只有
------解决方案--------------------
$str = 'afdasdfdsa
- 1
- 2
- 3
- 4
preg_match_all('/
- ]*>.*<\/ul>/isU', $str, $matches);
print_r($matches[0]);
?>
------解决方案--------------------
$str = '
- 1
- 2
- 3
- 4
- 5
- 6
preg_match_all('/
var_dump($matches);