eregi() replaced with preg_match()