62,628
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
String str = "Select * from tabA t where 1=1 and id in (slect * from tabB b wehre #[adsds])and #[t.id||t.name||t.org||t.money]";
Matcher m = Pattern.compile("#\\[(.*?)\\]").matcher(str);
while(m.find()){
System.out.println(m.group(1));
}
}