public boolean match ( String word ) { int flags = 0 ; if ( ignoreCase ) { flags = flags | Pattern . CASE_INSENSITIVE ; } return Pattern . compile ( pattern , flags ) . matcher ( word ) . find ( ) ; }
Does the given word match?