Wrong value: not alphanumeric characters cgi php code example Example: php string only letters $result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);