Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は文字列を持っています
s = "Test TEst TEST. Test. TEST. TEST. Test test test."
私は結果をこのようなものにする必要があります
s = "Test test test. Test. Test. Test. Test test test."
Rubyでこれを行うにはどうすればよいですか?
どうも。
s = "Test TEst TEST. Test. TEST. TEST. Test test test." p s.split('. ').map(&:capitalize).join('. ') #=> "Test test test. Test. Test. Test. Test test test."