public static boolean isValidImdbId(String imdbId){
  if (StringUtils.isEmpty(imdbId)) {
    return false;
  }
  return imdbId.matches("tt\\d{7}");
}

public static boolean isValidImdbId ( String imdbId ) { if ( StringUtils . isEmpty ( imdbId ) ) { return false ; } return imdbId . matches ( "tt\\d{7}" ) ; }
checks if is valid imdb id .
