regexp help...

From: Date: Mon, 21 Jul 2003 18:44:53 +0000
Subject: regexp help...
Groups: php.general 
Request: Send a blank email to php-general+get-156110@lists.php.net to get a copy of this message
Hi all, I have a string that for all practical purposes should probably be a list (array). I need one line from the string and need to send the rest to /dev/null. The string starts: HTTP/1.1 200 OK Date: Tue, 22 Jul 2003 01:34:12 GMT Server: Apache/1.3.27 (Unix) mod_jk/1.1.0 mod_ssl/2.8.12 OpenSSL/0.9.6g Set-Cookie: JSESSIONID=mngtpma6i1;Path=/Interface Connection: close Content-Type: text/html;charset=ISO-8859-1 <?xml version="1.0"?> blah blah blah </shipment> The String ends on the line above (white space line). If I'm not mistaken the blank lines are actually a combo of unix and dos line returns. any help is much appreciated. thanks,

« previous php.general (#156110) next »