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