次の正規表現に *、&、(、) を追加するのを手伝ってくれる人はいますか?
var r=/^[\sa-zA-Z0-9'\.,-]+$/;
if(!(r.test(search_key))){
alert("Sorry, you have entered invalid characters, please try again.");
return false;
}
if(search_key =="Keyword(s)"){
document.getElementById("field1").value = "";
}
if(search_city =="City, State or Zip"){
document.getElementById("GH_search_field2").value = "";
}