正规表达式
ycb1689
这个作者很懒,什么都没留下…
展开
-
java使用正则表达式提取方括号中内容
String regex = "(?<=\\[)(\\S+)(?=\\])"; Pattern pattern = Pattern.compile (regex); Matcher matcher = pattern.matcher (destZoneCode);原创 2016-08-05 18:42:51 · 18450 阅读 · 0 评论 -
java正则表达式替换字符串中带小数点的数字
temp.replaceAll("([1-9]+[0-9]*|0)(\\.[\\d]+)?",format.format(feeCount))原创 2016-08-05 19:32:37 · 5783 阅读 · 2 评论