On October 14, 2003 02:14 pm, David Sklar wrote:
> if (! ($_REQUEST['email'] =~ '/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i')) {
> $form->addError('Please enter a valid e-mail address.');
> }
Why not use PERL if you are looking for this sort of functionality? As
indicated by other developers PHP strength comes from ease of use & clarity,
the regex syntax you propose is anything but. Is calling preg_match() that
much of a problem?
Ilia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php