quote:Originally posted by markee if(somestring.search(somearray[x]) != -1){ //search the target text for array element