문제

I have been through the documentation for Spring Expression Language and I saw that it has operator matches for regular expression. Does anyone know if the algorithm used for it is the same greedy one as for matches in Java language?

도움이 되었습니까?

해결책

It uses the basic Java implementation - see OperatorMatches...

Pattern pattern = Pattern.compile((String) right);
Matcher matcher = pattern.matcher((String) left);
return BooleanTypedValue.forValue(matcher.matches());
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top