StringUtils.split(String str, String separator) separator是一个正则表达式,里面字符是或的关系
StringUtils.split("abdcde", "bd"); 按 b和d 来分,而不是db一起来分
替代方法 StringUtils.splitByWholeSeparator(String str, String separator)
splitByWholeSeparator
时间: 2024-08-11 09:44:24
StringUtils.split(String str, String separator) separator是一个正则表达式,里面字符是或的关系
StringUtils.split("abdcde", "bd"); 按 b和d 来分,而不是db一起来分
替代方法 StringUtils.splitByWholeSeparator(String str, String separator)
splitByWholeSeparator