|
Posted by Rik on 06/07/06 17:35
Rik wrote:
> Possibilities:
> $filen = preg_replace("|/{3}.*?$|m", "", $filen);
> $filen = preg_replace("|/{3}.*?\n|", "", $filen);
julian_m wrote:
> Your code output is:
>
> After:
> Hello World Hellloooooo
>
> whereas I would like to get
>
> Hello World
> Hellloooooo
$filen = preg_replace("|/{3}.*?$|m", "\n", $filen);
$filen = preg_replace("|/{3}.*?\n|", "\n", $filen);
or:
>>>echo preg_replace ("/\/\/\/(.*)/", "\n", $str);
Not "/n" :-)
Grtz,
--
Rik Wasmus
[Back to original message]
|