note 13412 added to function.ereg.php

From: Date: Fri, 15 Jun 2001 14:52:56 +0000
Subject: note 13412 added to function.ereg.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14311@lists.php.net to get a copy of this message
If you are using this to validate user input, you might want to check if the user input does not contain newlines. If it does, your check will succeed if one of the lines match the regexp. Also the string will contain a newline, which your program might not expect. http://www.php.net/manual/en/function.ereg.php

« previous php.notes (#14311) next »