更新时间:2023-02-18 21:22:14
您需要致电 find
移至第一场比赛。在调用 group()
之前添加 matcher.find();
。
You need to call find
to move to the first match. Add matcher.find();
before calling group()
.
一旦你这样做,你的代码就会按预期工作。
Once you do that your code works as expected.