code: public boolean isValid(String value) {
          if (value == null) {
              return false;
          }
          for (Pattern pattern : patterns) {
              if (pattern.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>.