How can I extract text from a string when begining and ending strings are given?
s = "Waiting is a 2015 Indian comedy-drama film directed by Anu Menon, released in India on 27 May 2016. Produced by Priti Gupta of Ishka Films and Manish Mundra of Drishyam Films, the film was co-written by Menon and James Ruzicka"
begining = "Produced"
ending = "Films"
Output should be:
Produced by Priti Gupta of Ishka Films and Manish Mundra of Drishyam Films
str, as this shadows the built instr()method. I know what you posted is just an example, I thought I'd point this out just in case you didn't know :-)