As amended by AB 1950, PC 1203.1 limits the maximum length of most felony probation terms to 2 years but contains an exception for offenses that include a specific probation length within their provisions. For those offenses, the probation term must not exceed “the maximum possible term of the sentence.” The Court of Appeal holds that this language refers to the maximum possible aggregate term of imprisonment that could be imposed in the particular case, such that defendant’s probation term must be reduced from 5 years to 3 years and 8 months.