1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| request='google and +bing filetype:pdf';
// but de la sortie : 'google bing'
k = request.replace(/\+|\(|\)|AND/i, " ");
var kw = ["site",
"link",
"filetype",
"allinanchor",
"inanchor",
"allintext",
"intext",
"allintitle",
"intitle",
"allinurl",
"inurl",
"author",
"group",
"insubject",
"msgid",
"location",
"store",
"cache",
"info",
"related",
"define",
"phonebook",
"bphonebook",
"rphonebook",
"movie",
"stocks",
"weather"];
for (var i=0; i < kw.length; i++); {
k= k.replace(/kw[i]\:.* /i, " ");
}
print(k); |
Partager