I am kinda new to python. I'm reading lines from a text file and store them in a string variable. Each line is in the following format:
text:text"text":"text":"extract":"text."text:"....
I want to delete all the characters from the string until the n'th ocurrence of the character " and save the word extract. Could someone help me on how to do this ? I'm using python3
Example:
str=text:text"text":"text":"extract":"text."text:"
someoperation(str)
print(str) #should return extract
str arrays have different numbers of characters.