newline in preg_split

From: Date: Sun, 18 Mar 2001 22:31:48 +0000
Subject: newline in preg_split
Groups: php.general 
Request: Send a blank email to php-general+get-44458@lists.php.net to get a copy of this message
Hi! I have text file looking something like this: core 010105 business 070344 core 020202 ... The textfile is a result from a database question and I am trying to parse the file in order to retrieve each line. I have tried using the explode()-method but I can´t get it to work with the delimiter \n (or \r or \\n...). I have also tried to use the preg_split()-method which takes a RE-argument but that doesn´t seem to work either (have tried in a lot of ways). Can anyone give me a clue how to solve this problem? Many thanks from Stockholm, Sweden! Jesper Blomstroem -- Jesper Blomström 08-370 317 (Hem) 08-566 280 08 (Arbete) 070-3024911 Ångermannagatan 113 162 64 Vällingby

« previous php.general (#44458) next »