I have tried:
preg_match(\"/^[a-zA-Z0-9]\", $value)
but im doing something wrong i guess.
try this way .eregi("[^A-Za-z0-9.]", $value)