From: ts Date: 2001-11-23T02:23:59+09:00 Subject: [ruby-talk:26161] Re: Non-perlish regular expressions (was: Linux Magazine article) >>>>> "K" == Kevin Smith writes: K> mbox = '/mailbox/testing-for-dashes' K> dash_split = Regexp.new('.*?-') K> ext = dash_split.match(mbox) if this regexp fail (i.e. you don't have `-'), ruby return nil K> ext2 = dash_split.match(ext.post_match) method #post_match not defined for nil Guy Decoux