code: @Deprecated
    public String[] getTableNames(String regex) throws IOException {
      TableName[] tableNames = listTableNames(regex);
      String[] tableIds = new String[tableNames.length];
      for (int i = 0; i < tableNames.length; i++) {
        tableIds[i] = tableNames[i].getNameAsString();
      }
      return tableIds;
    }
docs: <p>getTableNames.</p>
  
  @param regex a {@link String} object.
  @return an array of {@link String} objects.
  @throws IOException if any.