Re: [PHP] strip from

2002-01-07 Thread S. Murali Krishna
Hi, the code u sent is displaying the html as it is, but There is more than one way to do that. Atmost we can atleast do this. $pos = strpos($html,"/","",$start); print "$start $html" ; On Mon, 7 Jan 2002, Jimmy wrote: > Hi WB, > > > > Hi i need to stri

Re: [PHP] strip from

2002-01-07 Thread Jimmy
Hi WB, > Hi i need to strip out the up to the tag. > preg_replace( "/" , " " , $body ); try this: preg_replace( "/[^]*]*>/" , " " , $body ); -- Jimmy Your mind is like parachute. It works best when it is open. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] strip from

2002-01-07 Thread S. Murali Krishna
Hi, Ur quest is not clear. Whether u want to delete everything upto tag or only tags up to body tag. anyway this might work for the former. $parsed = preg_replace("/\\n/","",$html); // to remove '\n' in HTML file $parsed = preg_replace("/^(.*)(" tag Thanks. On Mon, 7 Jan 2002, WB

[PHP] strip from

2002-01-07 Thread WB
Hi, Hi i need to strip out the up to the tag. For some reason, my function, preg_replace( "/" , " " , $body ); does not work. Ok I am not really brilliant at regular expressions ... Help? Jay