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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs