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 G. II

Hi,

In message “Re: Ruby 1.9 Syntax”
on Tue, 12 Sep 2006 23:51:44 +0900, James Edward G. II
[email protected] 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’ should do.

						matz.