<?php
$str=<<<start
<a href="" target="_blank" title="1231dsfdsfds">aaa</a>
start;
$pattern='/title="\d+[a-z]+\"/i';
$replace='';
$result=preg_replace($pattern,$replace,$str);
echo $result;
?>
去掉title="..."這一部分的內容
輸出的內容就是
<a href="" target="_blank" >aaa</a>
簡單的,學習用的,分享一下。