[编写高质量代码:改善java程序的151个建议]建议57 推荐在复杂字符串操作中使用正则表达式

 

 

Pattern pattern = Pattern.compile("\\b\\w+\\b");

Mathcher mather = pattern.mathcer(str);

 

 

posted @ 2013-12-22 11:50  akingseu  阅读(99)  评论(0编辑  收藏  举报