@ GwtIncompatible ( "java.util.regex.Pattern" ) public void containsMatch ( Pattern regex ) { if ( ! regex . matcher ( actual ( ) ) . find ( ) ) { failWithActual ( "expected to contain a match for" , regex ) ; } }
Fails if the string does not contain a match on the given regex .