Frage

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?

War es hilfreich?

Lösung

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());
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top