From: Brian Candler Date: 2011-04-08T16:20:33+09:00 Subject: Re: String.gsub with regex and block Chad Perrin wrote in post #991517: > . . . so, is there some way to use more descriptive variable names than > the default $1, $2, et cetera, for captures from within a regex? I'm > not > aware of any, but I too would find that agreeable. Yes, ruby 1.9 has named capture groups. I posted an example earlier in this thread. -- Posted via http://www.ruby-forum.com/.