Reformatted excerpts from Steve Goldman's message of 2009-07-22:
> require 'eregex'
>
> r = Regexp.new('word', Regexp::IGNORECASE);
> if header.to_s.grep(r).size > 0 or body.to_s.grep(r).size > 0You can just use body.to_s =~ /word/i || header.join =~ /i/. No need for all the fancy libraries and method calls. -- William <[email protected]> _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
