Hi guys,

Question for you.

Suppose you were doing something like capitalizing the vowels
in a string:

  str.gsub(/aeiou]/) { $&.upcase }

But suppose you didn't want to use $&, butt wanted to use a
MatchData object md and reference md[0].

Is there a good way?

TIA,
Hal

--
Hal Fulton


Sent via Deja.com http://www.deja.com/
Before you buy.