Re: [PHP-DB] eregi problem

2005-04-03 Thread Mark Cain
the line." Without the $ as an end anchor the user would be able to put non-A/N characters at the end of the line of A/N characters and your code would not trap it. Mark Cain - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Sunday, April 03, 2005 11:18 AM Subject:

[PHP-DB] eregi problem

2005-04-03 Thread emre
I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha numeric chars only. here, how I check the variable: if((eregi("[^a-zA-Z0-9]",$GP[sifre]) echo 'true'; else echo 'false'; It works if variable starts with alphabetic chars only. for example this returns 'ok' $GP[