code: public final void setRegex(@NonNull final Pattern regex) {
          Condition.INSTANCE.ensureNotNull(regex, "The regular expression may not be null");
          this.regex = regex;
      }
docs: Sets the regular expression, which should be used to verify the texts.
  
  @param regex
  The regular expression, which should be set, as an instance of the class {@link
  Pattern}. The regular expression may not be null