Thursday, February 23, 2012
Ruby: concept of paginating
Javascript wildcard Search in array using jQuery
function search_array(a, query_value){ keke = $.map(a, function (value) { re = RegExp(query_value, "gi"); if(value.match(re)) return value; return null; }); return keke }
usage :
>>> search_array(["gula", "gila", "abu"], "la")
["gula", "gila"]which im searching for string "la"
Subscribe to:
Posts (Atom)