I have a text file with a bunch of random text inside. How would I go about finding the following string in the text file using regex and python.
name: "here's my string"
Basically, I want to find "here's my string" without the quotes if possible using regex and python. I would need to use regex because the string itself and the position of the string could change over time.
Match I'm looking for:
here's my string
I tried:
("name:([^,]+|\S+)"
but I don't get any results back. If someone could help explain where I went wrong that would be very helpful.
Thanks in advance.