Posted by bala on 12/09/05 07:52
Hi Gene...
Try this....if u have found any pbm ,mail me
$string ="This is a <a href='http://www.ur1.com'>Hyperlink</a> and this
is a <a href='http://www.ur2.com'> Hyperlink</a>";
echo 'Before => '.$string;
$string = ereg_replace('(.*)(http:\/\/www.ur1)(.*)',
'\\1javascript:\\2\\3', $string);
echo '<br>After => '.$string;
Navigation:
[Reply to this message]
|