📅  最后修改于: 2022-03-11 14:52:03.996000             🧑  作者: Mango
You need to call find() on the Matcher before you can call group() and related functions:
if (m.find()) {
System.out.println("id = " + m.group(1));
}