class EvaluationPhaseFilterFunctions {

    public static String getMatchToRightOfPeriod(String input, int pos) {
        int[] indices = indicesOf(input, '.');
        if (indices.length < pos + 1)
            throw new RuntimeException("Input" + input + " does not have a '.' at position " + pos + " from the right.");
        return input.substring(indices[indices.length - pos - 1] + 1);
    }

}