I have a string that I want to split into a list of certain types. For example, I want to split Starter Main Course Dessert
to [Starter, Main Course, Dessert]
I cannot use split() because it will split up the Main Course
type. How can I do the splitting? Is regex needed?