提取java中的正则表达式所的到的验证结果
/** * 功能说明:处理地址,并返回根目录地址 * @param path 预处理的地址 * @return String */public String processPath(String path){//得到截取后的字符串Pattern pattern=Pattern.compile("out/[^/]+/");Matcher c=pattern.matcher(path);boolean bool=c.find();String strPath=bool?c.group(0):"";return strPath;}?