Phip
12-01-2002, 03:37 AM
no matter how had i try i can never figure out regular expressions. anyway, this is very simple but i can't get it. why doesn't this work? i want $title to only have numeric and alphabetic charaters
if(!eregi("[a-z0-9]", $title))
{
echo "bad";
}
if(!eregi("[a-z0-9]", $title))
{
echo "bad";
}