From: Gunther Diemant Date: 2011-12-23T01:43:00+09:00 Subject: Re: Regex Problem Needing assistance. Regexp#match returns the first match only. If you want all matches, use the String#scan method. m1.scan /[0-9]+,[0-9]+,[0-9]+\b|[0-9]+/ #=> ["2", "88", "333", "253", "6", "222,042,095", "63,795,755", "3,042,095", "32,042,095", "303,042,095" ]