preg, patern quantifier limit

From: Date: Fri, 01 Aug 2003 19:34:55 +0000
Subject: preg, patern quantifier limit
Groups: php.general 
Request: Send a blank email to php-general+get-157998@lists.php.net to get a copy of this message
Hi, i did a standard preg [A-Za-z0-9]{1,65536} What i am simply trying to do is to validate the a form that will insert into my TEXT database field. So i just want to prevent a larger insert then expected. PHP trows me this error "preg_match(): Compilation failed: number too big in {} quantifier at offset 19 ..." So it appears that quantifiers are limited. Anybody knows what that limit is ? Thanks -- Yann Larrivee <yannl@istop.com>

« previous php.general (#157998) next »