>>>>> "K" == Kevin Smith <kevinbsmith / yahoo.com> 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