Java中用正则表达式替换掉字符串中的偶数个逗号
替换前Stringresult="1212384,4236,1215468,2354,1513564,4432,1546132,6143";替换后Stringresult...
替换前
String result ="1212384,4236,1215468,2354,1513564,4432,1546132,6143";
替换后
String result1 ="1212384,4236;1215468,2354;1513564,4432;1546132,6143";
因为不常用正则表达式,哪位大神帮个忙 展开
String result ="1212384,4236,1215468,2354,1513564,4432,1546132,6143";
替换后
String result1 ="1212384,4236;1215468,2354;1513564,4432;1546132,6143";
因为不常用正则表达式,哪位大神帮个忙 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询