正则表达一般换行符是\n输出的话是:是< br/ >匹配过滤的话是:$str2 = "标签:name:jackpassword:123456";$str2 = preg_replace("/<(\/?br.*?\/)>/si","",$str2);echo $str2;
//i