An example of the python string is '8:30 AM- 10:00 PM Subject: Math'. In general, the string contains a start time, end time, and the subject I want to separate this string into 3 components: the start time, end time, and subject. For example 8:30 AM, 10:00 PM, and Subject: Math.
How can I do this using regex in python?