I have a string output like this-
KActive[m[K: active (running) since Sat 2021-07-29 00:11:50 IST; 8h ago', {'command': 'service tmi status | grep Active'}
I want to cut it from active to ago.
Final output should be-
active (running) since Sat 2021-07-29 00:11:50 IST; 8h ago
What is the best way to slice it in python? i am not looking for string_name[start_index:stop_index] rather I would like to know how to slice it using regex and python.