On Thu, Feb 10, 2005 at 05:25:52AM +0900, James Edward Gray II wrote:
> I don't think I understand the question.  Ruby supports replacement 
> with and empty string and even $1, just like Perl.
 
Somehow I didn't realize the significance of the $ in $1.

> line.sub!(/^((\d+)\s+/, "")
> puts "#{line}\n#{$1}"
> 
> Hope that helps.
 
Sure does, thanks.

-- 
Jos Backus                       _/  _/_/_/      Sunnyvale, CA
                                _/  _/   _/
                               _/  _/_/_/
                          _/  _/  _/    _/
jos at catnook.com        _/_/   _/_/_/          require 'std/disclaimer'