我正在看Java正则表达式教程,标题本身就很清楚了。看起来Matcher.lookingAt()正在尝试匹配整个字符串。是真的吗? 最佳答案 documentationforMatcher.lookingAt清楚地解释了lookingAt尝试匹配的区域:Likethematchesmethod,thismethodalwaysstartsatthebeginningoftheregion;unlikethatmethod,itdoesnotrequirethattheentireregionbematched.所以不,looking