void jumpToMatch(int match) {
        if (numMatches == 0) return;
        String regex = input.getText();
        Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL);
        Matcher matcher = pattern.matcher(editor.getText());
        int i = 0;

        while (matcher.find() && i != match) {
            i++;
        }

        editor.setCaretPosition(matcher.start());
        if (selectionHighlight != null) editor.getHighlighter().removeHighlight(selectionHighlight);
        removeHighlight(matcher.start(), matcher.end());
        selectionHighlight = highlight(matcher.start(), matcher.end(), Color.ORANGE);
    }