This topic created in 2933 days ago, the information mentioned may be changed or developed.
字符串(字母加数字)自增问题:
字符串 str=“ NB0001 ”;
然后要得到“ NB0002 ”
怎么算啊,如果不截的话
1 replies • 2018-11-10 23:58:28 +08:00
 |
|
Pattern pattern = Pattern("([0-9]+)"); Matcher matcher = pattern.compile(pattern, str); if (matcher.find()) { long number = NumberUtils.toLong(matcher.group(1)); }
|