quote:
Originally posted by novolo
Instead of doing the msg.match thing like in here..
code:
if(msg.match(/thanks|thnx|thank u/)){
ChatWnd.SendMessage("No problem, " + User + "! ");
}
isn't there a way like: msg.contains or something like that?
because if we use msg.match, me message recieved has to be exactly like that, instead is it contains certain words we can gues what he's talkiing about and return something close...
any ideas?
Erm match does test if the message contains the words.
match is is a regexp function