From: Roger Pack Date: 2009-12-20T12:31:30+09:00 Subject: Re: Alternate Regular Expressions? >> rather >> the inability to easily compose small REs into larger REs. Which is why >> so many programs end >> up with huge, unreadable REs. As a small example, it's really nice (and >> obvious) to be able to say >> >> re3 = re1 + re2 > > I agree with this and that's why I have the following add-on in my > standard lib: > > class Regexp > def +(other_regex) > ... > end > end Note also that you can do re3 = /#{re1}#{re2}/ which fits my needs pretty well. -r -- Posted via http://www.ruby-forum.com/.