RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
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

RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
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;

[PHP] newbie: regular expression suggestios

2002-01-31 Thread Lee P Reilly
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