67,513
社区成员
发帖
与我相关
我的任务
分享
public static void testReg1(){
String ss="select * from table left outer join table1 t1 on id1=xxid1 left outer join table2 t2 on id2=xxid2";
String regex = "[.]*join ([^join^on]+) on ";
Pattern p=Pattern.compile(regex);
Matcher m=p.matcher(ss);
while(m.find()){
System.out.println(m.group(1));
}
}
table1 t1
table2 t2