Open seaswalker opened 3 years ago
一些不怎么常用的很好用的方法.
StringUtils.countMatches(name, '/')
StringUtils.ordinalIndexOf(name, "/", 5);
这个是符号/第5次出现的位置。
/
一些不怎么常用的很好用的方法.
查询字符出现次数
查询字符串第n此出现的下标
这个是符号
/
第5次出现的位置。