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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to