Ruby 1.9 Syntax

A quick Ruby 1.9 question: I know you can now get at Oniguruma's named captures from MatchData objects, but is there a syntax for using them is a sub() replacement string?

Thanks.

James Edward Gray II

Hi,

ยทยทยท

In message "Re: Ruby 1.9 Syntax" on Tue, 12 Sep 2006 23:51:44 +0900, James Edward Gray II <james@grayproductions.net> writes:

A quick Ruby 1.9 question: I know you can now get at Oniguruma's
named captures from MatchData objects, but is there a syntax for
using them is a sub() replacement string?

As far as I know, '\k<word>' should do.

              matz.