private String parseToNextDelim() {
            final StringBuilder result = new StringBuilder();

            idx = LegacyFilterConfigParser.parseToNextDelim(config, idx, endChars, result);

            return result.toString();
        }
Parses next expression starting from idx and leaving idx at next token AFTER expression
main/src/main/java/cgeo/geocaching/utils/config/LegacyFilterConfigParser.java