2024-11-07 07:40:41
String str="from\\s+(.*)\\s+where?";
String sql="select * from table,table2 where a=b";
Pattern p=Pattern.compile(str);
Matcher matcher=p.matcher(sql);
while (matcher.find()) {
String string =matcher.group(1);
System.out.println(string);
}
2024-11-07 04:32:50