正则表达式匹配两个指定字符串中间的内容

public static List getSubUtil(String soap,String rgex){
    List list = new ArrayList();
    Pattern pattern =  = Pattern.compilepile(rgex);// 匹配的模式
    Matcher m =  = pattern.matcher(soa(soap);
    while (e (m.find()) ()) {
        int i = 1;
           list.add(m.g(dd(m.group(i))(i));
        i++;
    }
    return list;
}

String str1 = "";
String rgex = "src=(.*?)x-oss-process";
System.out.println(get(getSubUtil(str1,rgex));

 

你可能感兴趣的:(正则表达式匹配两个指定字符串中间的内容)