java正则表达式取各分组
import java.util.regex.*;
String line = "schema.table";
Matcher m = Pattern.compile("(\\w+)\\.(\\w+)").matcher(line);
while(m.find()){
String schemaName = m.group(1);
String tableName = m.group(2);
System.out.println("table name: " + tableName);
System.out.println("schema name: " + schemaName);
}