Well, glad you got it to go. Interesting, since you're using eregi instead of ereg you shouldn't need classes for both lower and uppercase letters, I'd think.
I threw the suggestion out rather quickly, on the basis of this:
<?
$str=array("hey", "far away", "yester-day");
$x=0;
while ($x<=2) {
$bob=ereg("[0-9 a-z_-]", "$str[$x]");
if ($bob)
echo "yup | ";
else
echo "nope | ";
$x++;
}
?>
I got "yup | yup | yup |" and figured I had it down...Ah, well ... :rolleyes: