Get start and end ranges from range.