From: Dave Thomas Date: 2001-05-17T02:37:33+09:00 Subject: [ruby-talk:15303] Re: Small regexp Perl -> Ruby translation "Matthew Bloch" writes: > Couldn't find the answers in the online book or the reference manual-- how > would one express this Perl construct in Ruby? -- > > my @matches = $data =~ /([\w\-\.]+:\d+)/g; Have a look at String#scan http://www.rubycentral.com/book/ref_c_string.html#scan Regards Dave