From: Jos Backus Date: 2001-11-22T16:11:11+09:00 Subject: [ruby-talk:26118] Re: Linux Magazine article On Thu, Nov 22, 2001 at 03:47:43PM +0900, ts wrote: > J> ($ext) = $mbox =~ /.*?-(.+)$/; > J> ($ext2) = $ext =~ /.*?-(.+)$/; > > /.*?-/ =~ mbox && /.*?-/ =~ (ext = $') && ext2 = $' > > Too perlish for me :-(((( Yes, thanks Guy, but this looks worse than the Perl code :) What would be a succinct way to do this in Ruby I wonder... I know this idiom is used a lot in Perl. > Guy Decoux -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;