$text = '(isim) name (isim)' ; $returnValue = preg_replace("/[^A-Za-z0-9 ]/", "", $text); echo $returnValue;