From: Bulat Ziganshin Date: 2002-09-25T14:31:58+09:00 Subject: Re: Regular expression object question Hello Daniel, Tuesday, September 24, 2002, 7:56:55 PM, you wrote: DB> re = /xyz/ DB> re2 = /abc/ DB> if re.match(string) || re2.match(string)... see eregex.rb. more effective approach: class Array def =~ (str) find {|re| re =~ str} } } list = [/abc/, /xyz/] list << /def/ << /tuv/ print 'Yes!' if list =~ 'qwerty' btw, you don't need to subclass Regexp just to implement one it's operator ;) -- Best regards, Bulat mailto:bulatz@integ.ru