I need a regex that will parse a string from a string.
To show you what I mean, imagine that the following is the content of the string to parse:
"a string" ... \\"another \"string\"\\" ... "yet another \"string" ... "failed string\"
where "..." denotes some arbitrary data.
The regex would need to return the list:
["a string", "another \"string\"\\", "yet another \"string"]
Edit: Note that the literal backslashes don't stop the second match
I've tried finditer but it won't find overlapping matches, and I tried the lookahead (?=) but I couldn't get that to work either.
Help?