Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经阅读了Spring Expression Language 的文档,我看到它具有正则表达式的运算符匹配项。有谁知道用于它的算法是否与 Java 语言中的匹配算法相同?
它使用基本的 Java 实现 - 请参阅OperatorMatches...
OperatorMatches
Pattern pattern = Pattern.compile((String) right); Matcher matcher = pattern.matcher((String) left); return BooleanTypedValue.forValue(matcher.matches());