From: James Edward Gray II Date: 2007-01-27T00:50:29+09:00 Subject: Re: simple question about Ruby Regext On Jan 26, 2007, at 8:45 AM, Peter Bailey wrote: > > Thanks, Wolfgang. So, you suggest the use of "scan" instead of "gsub?" > That would imply the need for a block, which, seems kind of wordy, > but, > it does have power. . . . Thanks again. gsub/gsub! also take a block. Which one you use depends mainly on your purpose. Here's how I view the methods, in terms of a "Find and Replace" feature set common to so many programs: sub/sub! == Find gsub/gsub! == Find and Replace scan == Find All Hope that helps. James Edward Gray II