Posted by lorento on 06/07/06 03:40
Try this :
<?php
$str = "Hello World ///World Hello\n";
$str .= "Hellloooooo ///allohhhaaaa\n";
echo "<b>Before : </b><br>$str<br><br>";
echo "<b>After:</b><br>";
echo preg_replace ("/\/\/\/(.*)/", "", $str);
?>
regards,
Lorento
--
http://www.mastervb.net
http://www.padbuilder.com
http://www.immersivelounge.com
Navigation:
[Reply to this message]
|