Here is what I'm trying to do:
I have a long string:
s = asdf23rlkasdfidsiwanttocutthisoutsadlkljasdfhvaildufhblkajsdhf
I want to cut out the substring: iwanttocutthisout
I will be iterating through a loop and with each iteration the value of s will change. The only thing that will stay the same with each iteration is the begining and end of the substring to be cut out: iwant and thisout.
How can I cut out the substring, given these parameters?
Thanks for your help!