ตามกระทู้นี้ครับ
http://www.thaiseoboard.com/index.php/topic,14903.0.html 
ผมลองทำดูโดยใช้
<?
$text = "which give the discerning audio enthusiast some respite in their travels, or, for the audiophile who accepts nothing less than the best, a world class entertainment system that?s worthy of any classy whip. Happy travels!</p><p>Nathan Kartchner is the Marketing Coordinator for Sewell Direct, a premium online retailer, where you can find the <a target="_new" href="http://sewelldirect.com/vr3-cd-player-usb-port-audio-input-mp3.asp">VR3 Car Stereo CD Player with USB Port and Auxiliary Connector</a>, the <a target="_new" href="http://sewelldirect.com/vr3-thumbdrive-dj-mp3-fm.asp">VR3 Thumbdrive Player/FM Transmitter</a>, and the <a target="_new" href="http://sewelldirect.com/Scosche-iPod-Bluetooth-Car-Kit.asp">Scosche iPod Wireless Bluetooth Car Kit</a>"
$pattern = '/<a href=/';
$replacement = '<a rel="nofollow" href=';
$text = preg_replace($pattern,$replacement, $text);
echo $text;
?>
มันติดตรงที่ใน $textมันมีเครื่องหมาย " อยู่เต็มไปหมด
เลยคิดว่า ถ้าผมนั่งไล่แก้ ผมไล่ใส่ rel="nofollow" ง่ายกว่าครับ
จึงอยากจะขอคำแนะนำด้วยครับเอายังไงดี