umm...i tried that, and every time i try to search the array, it returns this in the debug window...
code:
Error: Expected ')' in regular expression (code: -2146823268)
File: my pm chat.js. Line: 150.
Function OnEvent_ChatWndReceiveMessage returned an error. Code: -2147352567
help please
the code im using to search is like this(vars are defined)
code:
function filtaNow(ChitChatter, tehmess){
for(x in filta0){ //For each array element
if(tehmess.search(filta0[x]) != -1){ //This is line 150
// !=-1 means the string text was found (only returns -1 when text is not found, else returns the index or position of the first character
Debug.Trace(somearray[x]); //Print it so we know it found the text
}
}
}