php和.net使用正则表达式差不多,不过格式要正确
function transfor(&$str)
{
$str=preg_replace("/(/[[^/[]*/])/","",$str); //去掉<*******>
$str=preg_replace("/(/<br/>)/","",$str);
$str=preg_replace("/(/“)/","'",$str);
$str=preg_replace("/(/")/","'",$str);
}
php和.net使用正则表达式差不多,不过格式要正确
function transfor(&$str)
{
$str=preg_replace("/(/[[^/[]*/])/","",$str); //去掉<*******>
$str=preg_replace("/(/<br/>)/","",$str);
$str=preg_replace("/(/“)/","'",$str);
$str=preg_replace("/(/")/","'",$str);
}