Re: about preg_replace, please help !

From: Date: Mon, 04 Feb 2008 05:06:26 +0000
Subject: Re: about preg_replace, please help !
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-268619@lists.php.net to get a copy of this message
On Feb 3, 2008 9:04 PM, LKSunny <ad@pc86.com> wrote: > this i know..... > but i need use preg_replace..... > > any body can help me, thank you very much !! > > "Casey" <heavyccasey@gmail.com> > ???????:2C658DD6-6A3D-47DE-96F7-06E9D9CB148F@gmail.com... > > > On Feb 3, 2008, at 5:00 PM, "LKSunny" <ad@pc86.com> wrote: > > > >> <? > >> $txt = <<<eof > >> aaaaaaaaa > >> aaaaaaaaa > >> aaaaaaaaa > >> > >> bbbbbbbb > >> bbbbbbbb > >> > >> bbbbbbbb > >> eof; > >> > >> //i just want replace "start to first \r\n\r\n" > >> //how can i do ? > >> //i want out put > >> /* > >> bbbbbbbb > >> bbbbbbbb > >> > >> bbbbbbbb > >> */ > >> print preg_replace("What's is this ?", "", $txt); > >> > >> //Thank You !! > >> ?> > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > list(, $result) = explode("\r\n\r\n", $string, 2); > > -- Why do you need preg_replace? -- -Casey

« previous php.general (#268619) next »