Parses slice index from four digits before last dot.