摘要: Pattern patPunc = Pattern.compile("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]$");Matcher matcher = patPunc.matcher(str); matcher.fi 阅读全文
posted @ 2019-12-19 15:36 up-zyn 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: Stirng attach_id = "a,da,dsa,rew,rew,dsa";String[] arr=new String(attach_id).split("[\\,]"); //用split对一个字符串按逗号分割成数组 String str = Arrays.toString(arr); 阅读全文
posted @ 2019-12-19 15:34 up-zyn 阅读(4717) 评论(0) 推荐(0) 编辑