php 正则处理 两个字符串间的数据
?
?
$str=' this is my string{parent_id} hello';if( preg_match("/{(.+?)}/isU",$str,$res)) echo $res[1]<i style="color:transparent">本文来源gaodai$ma#com搞$$代**码)网8</i><strong>搞代gaodaima码</strong>;#print_r($res);结果输出parent_id
php 正则处理 两个字符串间的数据
?
?
$str=' this is my string{parent_id} hello';if( preg_match("/{(.+?)}/isU",$str,$res)) echo $res[1]<i style="color:transparent">本文来源gaodai$ma#com搞$$代**码)网8</i><strong>搞代gaodaima码</strong>;#print_r($res);结果输出parent_id