Hi,

At Thu, 11 Apr 2002 11:55:10 +0900,
Chris wrote:
> > How could a regexp be constructed for an "AND" search pattern?

  require "eregex"
  (/first/ & /second/ & /last/) =~ string

or, try http://member.nifty.ne.jp/nokada/archive/reop.rb


>          x.type == "Regexp" ? x : Regexp.new(Regexp.escape(x.to_s))

Kernel#type returns class itself, not class name.

-- 
Nobu Nakada