java正则表达式验证标点符号
摘要:
统计标点符号个数String str = "\"”.。,!,";int count = 0;Pattern pattern = Pattern.compile("\\pP");char c[] = str.toCharArray();for (int i = 0; i < c.length; i++... 阅读全文
posted @ 2013-12-22 16:11 itmyhome 阅读(5840) 评论(0) 推荐(0) 编辑