code: public boolean isValid(String value) {
      if (value == null) {
        return false;
      }
      for (int i = 0; i < patterns.length; i++) {
        if (patterns[i].matcher(value).matches()) {
          return true;
        }
      }
      return false;
    }
docs: Validate a value against the set of regular expressions.
  
  @param value The value to validate.
  @return <code>true</code> if the value is valid otherwise <code>false</code>.