求java大神用正则表达式方法分割此英语短文

Failure is probably the fortification in your pole. It is like a peek your wallet as the thief, when you are thinking how to spend several hard-won lepta, when you are wondering whether new money, it has laid background. Because of you, then at the heart of the most lax, alert, and most low awareness, and left it godsend failed.


//split.("__________________________________");

求解!!!

a黄金罗奇
浏览 1795回答 2
2回答

qq_青枣工作室_0

public class Main { public static void main(String[] args) { String str = "Failure is probably the fortification in your pole. It is like a peek your wallet as the thief, when you are thinking how to spend several hard-won lepta, when you are wondering whether new money, it has laid background. Because of you, then at the heart of the most lax, alert, and most low awareness, and left it godsend failed."; String[] words = str.split("[^\\w\\-]+"); for(String w : words) { System.out.println(w); } } }
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java