Hi,

At Wed, 21 Dec 2005 10:57:01 +0900,
Jeff Cohen wrote in [ruby-talk:171830]:
> Assume for simplicity that the the first name is the text up to the 
> first space, and the last name is the text after the last space.

What should be returned if fullname has no space?

  def split_name(fullname)
    fullname.scan(/(\S+).*\s(\S+)/).first
  end

-- 
Nobu Nakada