private void performCommand(String url) {
        if (url.equals("report")) {
            System.out.println(this);
        } else {
            Matcher m = Pattern.compile(REGEX).matcher(url);
        
            while (m.find()) {
                if (m.group(1) != null && this.validEnds(m.group(1))) {
                    this.totalDomains++;
                    this.searchAndIncrement(m.group(1));
                }
            }
        }
    }