1. Insert a if block after the first one to check the existence of substring 'select', using
String.Contains Method[
^]
2. The current second if block becomes the third one.
3. If not mandatory then just return true for your first if block.
+++++++++++++++++++++++++
Since you insist to use regex, then in point 1, put this code:
var regExpDEOID = /select/i;
if (regExpDEOID.test($('#deoIdSelect').val())) {
alert("select or SELECT not allowed.");
return false;
}