From: Yui NARUSE Date: 2010-02-21T20:51:55+09:00 Subject: [ruby-core:28280] [Feature #2759] Regexp /g and /G options Issue #2759 has been updated by Yui NARUSE. If you want full compatibility to Oniguruma, yes. Or original Oniguruma seems not maintained now, so you can use common functions of Ruby 1.9 and Oniguruma 5.9.2. But I think, what you want is only resolve mixing captured group and named capture. Until the problem is only this one, you can simply replace captured group to not captured group. (?:subexp) not captured group (subexp) captured group http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt This solution doesn't work when the regexp uses numbered-backref/call, but your example seems not hit it. Anyway you should report this to original author (Textmate people? manveru?). Of course those regexp doesn't work in Ruby 1.9, so they also need to change there regexps. FYI, document of Ruby's regexp is (thanks Roger!): http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/doc/re.rdoc?revision=24992&view=markup ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2759 ---------------------------------------- http://redmine.ruby-lang.org