private void evaluateRegex() {
        String regex = input.getText();
        Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL);
        Matcher matcher = pattern.matcher(editor.getText());
        clearHighlights();
        numMatches = 0;
        currentMatch = 0;

        while (matcher.find()) {
            highlight(matcher.start(), matcher.end(), Color.YELLOW);
            numMatches++;
        }

        statusLabel.setText(numMatches + " Matches");
        if (numMatches > 0)
            jumpToMatch(0);
    }