根据字符串内容前后匹配查询中间内容
@Test
public void test(){
String sss ="19/11/28 15:04:36 INFO Client: Application report for application_1574829583306_0018 has started running";
Pattern p=Pattern.compile("19/11/28 15:04:36 INFO Client: Application report for (\\w+) has started running");
Matcher m=p.matcher(sss);
while(m.find()){
System.out.println(m.group(1));
}
}
结果: