Re: Problems with patterns

From: Date: Thu, 22 Apr 2004 01:28:14 +0000
Subject: Re: Problems with patterns
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184176@lists.php.net to get a copy of this message
where in the ereg("^[a-zA-Z0-9_]{3,15}$", $cuvant) i should place \s+ ? ----- Original Message ----- From: "Matt Matijevich" <matijevich@alliancetechnologies.net> To: <phpu@go.ro>; <php-general@lists.php.net> Sent: Thursday, April 22, 2004 3:34 AM Subject: Re: [PHP] Problems with patterns > you need to account fir white space if you want phrases > > \s+ > > > I would switch to preg_match() instead of ereg() > > http://www.php.net/manual/en/function.preg-match.php >

« previous php.general (#184176) next »