I have a long string of text. I want to condense that string at a certain point using a key word to indicate the start of my new string in Python. For example, my string is:
"Hello my name John. I am twenty-five years old. I live in New York City. I work on Wall Street." I want the text from "New York" to the end of the text i.e. I need code to pull the substring "New York City. I work on Wall Street."
have = "Hello my name John. I am twenty-five years old. I live in New York City. I work on Wall Street."
want = "New York City. I work on Wall Street."
key_phrase = "New York"
Any help would be much appreciated!