Complex sentence: On formation in 1881 it was known as The Sherwood Foresters (Derbyshire Regiment) until 1902 when the title Nottinghamshire was added.
Split into simpler sentences: On formation in 1881 the unit was known as The Sherwood Foresters (Derbyshire Regiment). This name was kept until 1902 when the title Nottinghamshire was added.