Phlip wrote: > Michael Malone wrote: > >> /Everybody stand back/ >> I know regular expressions > > Our hero! > >> if msg.text =~ %r{lol}i >> reply(msg, " LOLOLOLOL") > > bla> echololia is a serious aphasia > > bot> LOLOLOLOL > > bla> uh... k It seems that if msg.text was a String object, then the include? method should work. The first thing I would do would be to try... puts msg.text.class ...to know exactly what I am dealing with. John S. -- Posted via http://www.ruby-forum.com/.