From: nobu.nokada@... Date: 2003-05-31T08:41:03+09:00 Subject: Re: regexp operators Hi, At Sat, 31 May 2003 03:26:53 +0900, Wesley J Landaker wrote: > So I whipped this out really quick. It lets you combine regexp by adding > them (+), ORing them (|) or by including them /blah#{some_regexp}blah/ > inside each other, while preserving all flags. (At least, all flags > that can be preserved--I can't do anything about the encodings if they > mismatch... but I use all UTF-8 regexps, so I always use 'u'). This > could potentially be extended to support other operations--but I > haven't needed them yet on the project I'm tinkering with. Flags are preserved in 1.8. $ ruby -v -e 'p(/#{/foo/m}/)' ruby 1.8.0 (2003-05-31) [i686-linux] /(?m-ix:foo)/ -- Nobu Nakada