RE: [PHP] Detecting \n
| From: | Ben Wiechman | Date: | Sun, 22 Oct 2000 00:17:49 +0000 |
| Subject: | RE: [PHP] Detecting \n | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21611@lists.php.net to get a copy of this message | ||
That works great if the \n is at the end of the line, I need something I can
use in ereg_replace, or preg_replace to remove a \n from the middle of a
line of text.
Ben
-----Original Message-----
From: Dallas Kropka [mailto:dallask@firstworld.net]
Sent: Saturday, October 21, 2000 2015 Neteru
To: Ben Wiechman; Php-General
Subject: Re: [PHP] Detecting \n
http://www.php.net/manual/function.chop.php
use chop to remove newlines and trailing spaces
----- Original Message -----
From: "Ben Wiechman" <neteru@aminal.net>
To: "Php-General" <php-general@lists.php.net>
Sent: Saturday, October 21, 2000 3:45 PM
Subject: [PHP] Detecting \n
> Alright. I've played with this for a while, but I can't seem to find
> something that works. Can someone point me to the regular expression that
> will detect a newline in a string of text, ie user types data into a text
> form field, I want to remove all \n characters. How do I pull that off?
>
> Thanks.
>
> Ben
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>