使用Ruby语言,我想要将每个句子的第一个字母大写,并且去掉每个句子末尾句号前面的空格,不应该改变任何其他内容。
谢谢大家。
Input = "this is the First Sentence . this is the Second Sentence ."
Output = "This is the First Sentence. This is the Second Sentence."
谢谢大家。