![]() |
|
|
+ Search |
![]()
|
Oct 26th, 2004 03:19
ben joe,
/*
* Very simple in fact...
* I put here the solution, just in case...
*/
var string = "One man, One vote";
var filters = new Array("three", "two", "one");
for(var i=0;i<filters.length; i++)
{
var search = new RegExp(filters[i], "gi");
if(search.test(string))
alert("true");
}