src/main/java/seedu/address/ui/autocompleter/CommandBoxParser.java
public String[] parseCommandAndPrefixes(String commandBoxText) {
        requireNonNull(commandBoxText);
        String[] parseResults = {EMPTY_STRING, EMPTY_STRING };
        final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(commandBoxText.trim());
        if (!matcher.matches()) {
            return parseResults;
        }
        final String commandWord = matcher.group("commandWord");
        final String arguments = matcher.group("arguments");
        if (isValidCommand(commandWord)) {
            parseResults[COMMAND_INDEX] = commandWord;
        }
        parseResults[ARGUMENT_INDEX] = arguments;
        return parseResults;
    }
/**
     * Parses {@code commandBoxText} to see if it contains any instances of a {@code Command} and {@code Prefix}
     *
     * @return {@code String} array containing the {@code Command} at index 0 and the remaining arguments at index 1
     */
Parses  commandBoxText to see if it contains any instances of a  Command and  Prefix
@return  String array containing the  Command at index 0 and the remaining arguments at index 1
Parses commandBoxText to see if it contains any instances of a Command and Prefix @return String array containing the Command at index 0 and the remaining arguments at index 1
public String[] parseCommandAndPrefixes(String commandBoxText) {
        requireNonNull(commandBoxText);
        String[] parseResults = {EMPTY_STRING, EMPTY_STRING };
        final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(commandBoxText.trim());
        if (!matcher.matches()) {
            return parseResults;
        }
        final String commandWord = matcher.group("commandWord");
        final String arguments = matcher.group("arguments");
        if (isValidCommand(commandWord)) {
            parseResults[COMMAND_INDEX] = commandWord;
        }
        parseResults[ARGUMENT_INDEX] = arguments;
        return parseResults;
    }
public String [ ] parseCommandAndPrefixes ( String commandBoxText ) { requireNonNull ( commandBoxText ) ; String [ ] parseResults = { EMPTY_STRING , EMPTY_STRING } ; final Matcher matcher = BASIC_COMMAND_FORMAT . matcher ( commandBoxText . trim ( ) ) ; if ( ! matcher . matches ( ) ) { return parseResults ; } final String commandWord = matcher . group ( "commandWord" ) ; final String arguments = matcher . group ( "arguments" ) ; if ( isValidCommand ( commandWord ) ) { parseResults [ COMMAND_INDEX ] = commandWord ; } parseResults [ ARGUMENT_INDEX ] = arguments ; return parseResults ; }
Parses {@code commandBoxText} to see if it contains any instances of a {@code Command} and {@code Prefix}
 @return {@code String} array containing the {@code Command} at index 0 and the remaining arguments at index 1
Parses { @code commandBoxText } to see if it contains any instances of a { @code Command } and { @code Prefix } @return { @code String } array containing the { @code Command } at index 0 and the remaining arguments at index 1