String escapedSearchText = regExpChars.replace(searchText, "\\\\$&");
RegExp regex = RegExp.compile(regexAnchor + escapedSearchText, "i");
RegExp zregex = RegExp.compile("("+escapedSearchText+")", "i");
for (int i = 0; i < selectItems.length(); i++) {
SelectItem item = selectItems.get(i);
if (item.isDisabled() || item.isEmpty()) {
continue;
}
if (item.isGroup()) {
$('#' + item.getDomId()).css("display", "none");
} else {
OptionItem option = (OptionItem) item;
if (!(isMultiple && option.isSelected())) {
boolean found = false;