This is intentionally an exact replica of the RegexFunction, is not inconsistent: 
https://github.com/mulesoft/mule/blob/mule-3.x/core/src/main/java/org/mule/el/function/RegexExpressionLanguageFuntion.java#L55