67,513
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
String str = "Select * From `#@__arcatt` order by sortid asc";
Pattern p = Pattern.compile("\\*\\s+From\\s+`#@__arcatt`");
Matcher m = p.matcher(str);
if(m.find()){
System.out.println(str = m.replaceAll("* abcdefgFrom `#@__arcatt`"));
}
}