if ($(this).val() == "" || $(this).val() == null) {
filterString = "";
} else
{
filterString = "^" + replaceRegexStr(filterList[0]) + "$";
for (var j = 1; j <
filterList.length; j++) {
filterString = filterString + "|" +
"^" + replaceRegexStr(filterList[j]) + "$";
}
}
^$ 这个即是“”的正则
原文地址:http://www.cnblogs.com/specification/p/3732768.html