[ruby-talk:00826] feature request

From: Jonathan Aseltine <aseltine@...>
Date: 1999-09-29 02:55:52 UTC
List: ruby-talk #826
Hi,

I'd like to be able to do this:

x = "a.b c.d"
x.gsub!(/(\w).(\w)/) {|i, j| <do something with the matched
subexpressions>}

Right now, Ruby only gives the entire matched string to the block.
-- 
_______________________________________________________________________
  Jonathan Aseltine     aseltine@cs.umass.edu     MAS, Umass, Amherst

In This Thread

Prev Next