/**
  * Verifies that the actual {@code CharSequence} does not match the given regular expression
  * pattern.
  *
  * <p>Example :
  *
  * <pre>
  * // assertion will pass
  * assertThat(&quot;Frodo&quot;).doesNotMatch(Pattern.compile(&quot;.*d&quot;));
  *
  * // assertion will fail
  * assertThat(&quot;Frodo&quot;).doesNotMatch(Pattern.compile(&quot;..o.o&quot;));
  * </pre>
  *
  * @param pattern the regular expression to which the actual {@code CharSequence} is to be
  *     matched.
  * @return {@code this} assertion object.
  * @throws NullPointerException if the given pattern is {@code null}.
  * @throws AssertionError if the actual {@code CharSequence} does not match the given regular
  *     expression.
  */
 public S doesNotMatch(Pattern pattern) {
   strings.assertDoesNotMatch(info, actual, pattern);
   return myself;
 }
 /**
  * Verifies that the actual {@code CharSequence} does not match the given regular expression.
  *
  * <p>Example :
  *
  * <pre>
  * // assertion will pass
  * assertThat(&quot;Frodo&quot;).doesNotMatch(&quot;.*d&quot;);
  *
  * // assertion will fail
  * assertThat(&quot;Frodo&quot;).doesNotMatch(&quot;..o.o&quot;);
  * </pre>
  *
  * @param regex the regular expression to which the actual {@code CharSequence} is to be matched.
  * @return {@code this} assertion object.
  * @throws NullPointerException if the given pattern is {@code null}.
  * @throws PatternSyntaxException if the regular expression's syntax is invalid.
  * @throws AssertionError if the actual {@code CharSequence} is {@code null}.
  * @throws AssertionError if the actual {@code CharSequence} matches the given regular expression.
  */
 public S doesNotMatch(CharSequence regex) {
   strings.assertDoesNotMatch(info, actual, regex);
   return myself;
 }