public static final String lastSegment(String segment) {
    	
        segment = clean(segment);
        Matcher arrayAtEndMatcher = ARRAY_AT_END.matcher(segment);
        
        if(arrayAtEndMatcher.matches()){
        	return arrayAtEndMatcher.group(1);
        }
        
        int index = segment.lastIndexOf(DOT);
        
        return index > NOT_FOUND ? segment.substring(index + 1, segment.length()) : segment;
       
    }