From: Ruchira Bomiriya Date: 2008-06-13T00:44:37+09:00 Subject: Re: Newby Ruby Regular Expression Question On Jun 12, 6:26 pm, Robert Dober wrote: > On Thu, Jun 12, 2008 at 1:29 PM, David A. Black wrote: > > str.scan(/A/). > > Hey it does not only happen to Rick, it happens to me too;) > Does this mean I am one of the best? > --http://ruby-smalltalk.blogspot.com/ > > --- > As simple as possible, but not simpler. > Albert Einstein Thanks Robert, str.scan(/A/) does what I wanted. Sorry for the confusion with the last A issue. I was messing with various regex patterns and some of them were greedy enough, took some of my brain cells away and made me think stupid things. But str.scan(/A/) has made me regain my faith in ruby's regular expressions. Not that I was particularly skeptic, but was merely stuck! Thanks again. Ruchira