From: WATANABE Hirofumi Date: 2002-01-26T03:03:25+09:00 Subject: Re: upcase/downcase first character of a word Hi, Tobias Reif writes: : :any simpler way than :-- :class String : : def upcase_first : self[0] = self[0].chr.upcase[0] : self : end : : def downcase_first : self[0] = self[0].chr.downcase[0] : self : end : : :end :-- :? class String def upcase_first sub!(/./){$&.upcase} end def downcase_first sub!(/./){$&.downcase} end end -- eban