I'm trying to use regex, but it can't seem to parse correctly. code: Code (text): mess = mess.replace(/fallout 3/gi,”Oblivion with guns”); mess = mess.replace(/pokemon/gi,”Pokémon”); sys.sendAll(sys.name(src) + ": " + mess); sys.stopEvent(); this.afterChatMessage(src, mess); can anyone tell me what I'm doing wrong? I can use mess.split instead, but it's just so inefficient combining all the strings many times.
http://www.regular-expressions.info/javascript.html That's how I usually test my regular expressions. They're so finicky sometimes though =/