如何将包含网页地址的两个句子分开?
How can I divide two sentence including web page address?
我想用Java分割两个句子包括网页地址。
比如分句what I want
"Hello, I want to find the best solution in whosebug.com. For these reason, I make a question."
我想把这句话分成如下。
"Hello, I want to find the best solution in whosebug.com."
"For these reason, I make a question."
然而,在 java 中使用 split("\.") 方法我可以得到
"Hello, I want to find the best solution in Whosebug"
"com"
"For these reason, I make a question."
这个问题怎么办?请帮助我。
尝试在拆分中添加 space:
String.split("\. ");
有人写说要解决这个写下面的方法
split("\.(?=\s+)");
但是,该答案已被删除。所以我写评论感谢给我回答的人。
我想用Java分割两个句子包括网页地址。 比如分句what I want "Hello, I want to find the best solution in whosebug.com. For these reason, I make a question."
我想把这句话分成如下。
"Hello, I want to find the best solution in whosebug.com."
"For these reason, I make a question."
然而,在 java 中使用 split("\.") 方法我可以得到
"Hello, I want to find the best solution in Whosebug"
"com"
"For these reason, I make a question."
这个问题怎么办?请帮助我。
尝试在拆分中添加 space:
String.split("\. ");
有人写说要解决这个写下面的方法
split("\.(?=\s+)");
但是,该答案已被删除。所以我写评论感谢给我回答的人。