Regular expression
| From: | Priya Chanu | Date: | Wed, 07 Nov 2001 15:32:18 +0000 |
| Subject: | Regular expression | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10262@lists.php.net to get a copy of this message | ||
Hello Everyone ,
I am a beginner with regular expression.
I want a string to be on only alphabets both upper and
lower case.
So to check it i do the following:
$vorname = "myname";
if(ereg("([a-z])",$vorname,$name))
{
print "formerror=false";
}
else
{
print "formerror=TRUE";
}
i always get the messge "formerror=false" no matter if
i replace the $vorname with something like
"343dfsdfsdf".
Can some one help me in advance.
priya
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com