if ((!eregi("^[' A-Za-z0-9_]+$", $islem) and $islem != "") or (!eregi("^[' A-Za-z0-9_]+$", $process) and $process != ""))


bu satırı

if ((!preg_match("/^[' A-Za-z0-9_]+$/i", $islem) and $islem != "") or (!preg_match("/^[' A-Za-z0-9_]+$/i", $process) and $process != ""))

bir bu şekilde dener misiniz ?