Re: Detecting \n

From: Date: Sun, 22 Oct 2000 01:14:52 +0000
Subject: Re: Detecting \n
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21603@lists.php.net to get a copy of this message
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 > >

« previous php.general (#21603) next »