i've got stuck on this regex.
<?
$teks="teks123";
$pattern="^[a-zA-Z]";
if(eregi($pattern,$teks))
{
echo "Teks is valid>";
}
else
{
echo "Teks isn't valid.";
}
?>
my question is : i want to filter only for charcter. But, when i run that script, i've got : Teks is valid. :wacko:
i want that '$teks' can't come in into my aplications.
Pliz, help and correct me.....
Thans B4.......
