> 
> If 'g' was an attribute of Regexp, then what would
> 
>     line =~ /asdf/g
> 
> mean?

 while line =~ /asdf/g
    print "#$&\n"
 end


it's more perl than ruby, sorry

Guy Decoux