ot;'Lee P Reilly'" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 2:27 PM
Subject: RE: [PHP] newbie: regular expression suggestios
> try: if (eregi("^[a-zA-Z0-9]*$", $name))
>
> This searches fo
HP] newbie: regular expression suggestios
Hi,
I am using (getting to grips with) regular expressions for validating
form data and have come across a little problem:
I have a statement like the following:
if (eregi("^[a-z0-9]{strlen($name)}$, $name))
{
blah...
return true;
Hi,
I am using (getting to grips with) regular expressions for validating
form data and have come across a little problem:
I have a statement like the following:
if (eregi("^[a-z0-9]{strlen($name)}$, $name))
{
blah...
return true;
}
, but the strlen($name) does not see
3 matches
Mail list logo