From: ts Date: 2001-05-17T01:15:44+09:00 Subject: [ruby-talk:15296] Re: Small regexp Perl -> Ruby translation >>>>> "M" == Matthew Bloch writes: M> my @matches = $data =~ /([\w\-\.]+:\d+)/g; See String#scan pigeon% ruby -e 'p "aa:12 bb:13 cc:14".scan(/[\w\-\.]+:\d+/)' ["aa:12", "bb:13", "cc:14"] pigeon% Guy Decoux