Re: ereg problem?

From: Date: Fri, 25 Jul 2003 05:46:16 +0000
Subject: Re: ereg problem?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-156794@lists.php.net to get a copy of this message
* Thus wrote John W. Holmes (holmes072000@charter.net): > chenqi1@zte.com.cn wrote: > > >who can tell me what's the pattern string mean. > >if(ereg("[\\][n]",$username)) > >{ > > /*Do err*/ > >} > > It's looking for a \ character or a \ character followed by the letter n > anywhere within the string $username. > I hope that isn't looking for a Carriage Return, cause it never will... Just in case it is.... strstr($username, "\n"); Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#156794) next »