<?
$str="<html>
<body>
fsdfsdf
<cms:l cms:type=word cms:num=9>
<tr>
<td></td>
</tr>
</cms>
sdfsdf";
if(preg_match("'<cms([^>]+)>(.+)</cms>'s",$str,$arr)){
echo $arr["2"];
}
?>
$str="<html>
<body>
fsdfsdf
<cms:l cms:type=word cms:num=9>
<tr>
<td></td>
</tr>
</cms>
sdfsdf";
if(preg_match("'<cms([^>]+)>(.+)</cms>'s",$str,$arr)){
echo $arr["2"];
}
?>
<tr>
<td></td>
</tr>
</cms>
sdfsdf
<cms:l cms:type=word cms:num=9>
<tr>
<td></td>
</tr>
</cms>
又应该怎么处理