Complex sentence: He was professor of philosophy at Uppsala University from 1842 to 1863, except for four years when he tutored the royal family in Stockholm.
Split into simpler sentences: He was professor of philosophy at Uppsala University from 1842 to 1863. For four years he tutored the royal family in Stockholm.