private static boolean isSupportedRegex(String regex){
  if (regex.contains("\\b"))   return false;
  return true;
}

private static boolean isSupportedRegex ( String regex ) { if ( regex . contains ( "\\b" ) ) return false ; return true ; }
determine whether the regex requires features that are not supported by the regex automaton library
