String result = str.substring(str.indexOf(">")+1, str.lastIndexOf("<"));. StringUtils.substringBefore(“abcdec”, “c”); 结果是:ab 这里是以第一个”c”为标准。
確定! 回上一頁