Re: [QF] URL regex

From: Date: Thu, 30 Oct 2003 22:38:55 +0000
Subject: Re: [QF] URL regex
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8697@lists.php.net to get a copy of this message
Hi, you need to escape any / '/^(http|https|ftp)\:\/\/ (etc.) Regards, Greg The Php_kid wrote:
Hi, I'm trying to use this rule:
$form->addRule('urlfield', 'URL not good, baby', 'regex',
'/^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-
zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$/');
but quick forms says: Warning: Unknown modifier '/' in c:\php\pear\pear\HTML\QuickForm.php on line 1491 have you an idea ? thank you... mac


« previous php.pear.general (#8697) next »