阅读背景:

如何在句子结尾处完全停止后插入空格,而不是缩写或浮点数?

来源:互联网 

I have a JTextArea in which I want to replace all full stops without a space next to them e.g in "This is a sentence.This is another C.O.D sentence.This is yet another C.A.T. sentence." to "This is a sentence. This is another C.O.D sentence. This is yet another C.A.T. sentence.". But I don't want the abbreviations or floating point numbers to gain extra spaces e.g "This is a C.A.T. float 5.5" should not become "This is a C. A. T. float 5. 5"! I am using string.replaceAll(".",". ") for this which is not proving to be sufficient.I have a JTextArea in which I want to replace a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: