goja-core/src/main/java/goja/core/Validator.java
public static boolean match(String regex, String value) {
        Pattern pattern = Pattern.compile(regex);
        return pattern.matcher(value).find();
    }
public static boolean match(String regex, String value) {
        Pattern pattern = Pattern.compile(regex);
        return pattern.matcher(value).find();
    }
public static boolean match ( String regex , String value ) { Pattern pattern = Pattern . compile ( regex ) ; return pattern . matcher ( value ) . find ( ) ; }
Matches the regular expression

@param regex regex
@param value value
@return boolean
Matches the regular expression