From: Yui NARUSE Date: 2010-03-02T20:44:49+09:00 Subject: [ruby-core:28415] [Feature #2759] Regexp /g and /G options Issue #2759 has been updated by Yui NARUSE. r26796 allows your example to pass. It fixes a bug of Oniguruma: captured groups in anchors (look-ahead, look-behind, and so on) are not removed and unintended invalid backref error occur. You hit this. Thank you for reporting. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2759 ---------------------------------------- http://redmine.ruby-lang.org