Re: trailing carriage return in file
| From: | Marek Kilimajer | Date: | Wed, 08 Oct 2003 11:31:32 +0000 |
| Subject: | Re: trailing carriage return in file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165410@lists.php.net to get a copy of this message | ||
trim()
Alex Ciurea wrote:
hello guys, I don't know how can I eliminate from a file the trailing <cr>? "\n" I have a file that ends-up with one ore more <cr> it looks like this: BeginOfFile data here [....] end of data EndOfFile after data I have one or more <cr> (the file don't ends immediately) i don't know how to match, using preg_replace() the '\n' character... it's something like "/\\\\n/" ? thanks, Have a nice day ! (And I'm sure that tomorrow will be better than today!) Alex Ciurea Greets You www.netonwave.com