I have a list of strings (see below). I want to get the elements in the list by looking for two specific tokens (begin and end) and then save all the strings present between those tokens.
For example, I have below list and I want to get all strings between any occurrence of the strings 'RATED' and 'Like'. There can be multiple occurrences of these subsequences, too.
['RATED',
' Awesome food at a good price .',
'Delivery was very quick even on New Year\xe2\x80\x99s Eve .',
'Please try crispy corn and veg noodles From this place .',
'Taste maintained .',
'Like',
'1',
'Comment',
'0',
'Share',
'Divyansh Agarwal',
'1 Review',
'Follow',
'3 days ago',
'RATED',
' I have tried schezwan noodles and the momos with kitkat shake',
"And I would say just one word it's best for the best reasonable rates.... Gotta recommend it to everyone",
'Like']
I have tried different methods, like regex, but none solved the problem.