Posted by Justin Koivisto on 10/06/48 11:44
basement_addict@yahoo.com wrote:
> I am trying to remove all the headers in a text file.
>
> I tried this preg_replace('/^.*\n/', '',$body) but it only removed the
> first one.
>
>
>
> start of document-> Content-Type: text/plain
> Content-Transfer-Encoding: 8bit
> X-Input-Content-Type: application/msword
> X-Translator-Status: translating
>
>
> remove up to here ->This is the body of the document asdfdsafasdf
preg_replace('`^.*(\n{2}|\r\n{2})`Us','',$body);
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
[Back to original message]
|