code: words_wrong = new Array("teh", "tehn");
words_right = new Array("the", "then");
for(i = 0; i < words_wrong.length; i++)
{
message = message.replace(/(^|\s|\n)+ words_wrong[i] +($|\s|\n)/gi, "$1"+words_right[i]+"$2");
}
return message;
so what is wrong here? how can i add a variable in the regexp expression...
Window Manager is discontinued, for WLM try the new, Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows