From: Chuft Captain Date: 2009-04-09T13:47:05+09:00 Subject: Re: A hopefully simple question Michael Malone wrote: > Chuft Captain wrote: >> Is there a simple way to accomplish this task by replacing the == >> comparison operator with something else that searches a string variable >> for a substring? >> >> Thanks >> > /Everybody stand back/ > I know regular expressions > > if msg.text =~ %r{lol}i > reply(msg, " LOLOLOLOL") > You are a god among men. You have my thanks! -- Posted via http://www.ruby-forum.com/.