} else if ((getMatchingMode() == MODE_STARTS_WITH) && matcher.lookingAt()) { result = matcher.end(); }
    public int match(String formattedString) {        int result = 0;        Matcher matcher = getRegexPattern().matcher(formattedString);        if (matcher.matches())            result = matcher.end();        return result;    }