From: Brian Candler Date: 2008-10-04T04:46:15+09:00 Subject: Re: Explain this ruby regex > FWIW, instead of looking at the result with #inspect, I found it more > informative to look at the result returned from #scan by itself, e.g. > > irb> "one two".scan(/\w*/) > => ["one", "", "two", ""] irb displays the expression value using "inspect", so you are using inspect even though you didn't ask for it :-) -- Posted via http://www.ruby-forum.com/.