> Hmm, how about this?
> str.gsub(/\w.*?[.!?](?:\s+|\z)/){|c|c.capitalize}

This solves my problem better than what I was doing. Thanks. Do you
think that other's could also benefit from such an extension to
`capitalize`, or is it better done problem specific?

> Of course, this is wrong for example "iPhone is designed by Apple in California."

Neither does mine :-|.

-- 
Anurag Priyam
http://about.me/yeban/