How can I create a regex for Vim that accommodates for matching multiple double quotes strings on one line, without matching the text in between the two double quotes strings? A restriction on the pattern is that the double quoted strings can't contain a single quote. So far I came up with /"\([^']\{-}\)"/ to match the strings below. But as you see it will match the text in between the strings for the second line. I can't rely on white space surrounding the strings, as you see in the third line. And of course it needs to work with the fourth line as well.
- "cat" is called "foo"
- "cat's" name is "foo"
- x="cat's food"
- x = "cat"
"cat's" name is "foo"the 2nd"(after's) should or should not be matched? the answer is negative, I knew. because ofcat's. but" name is "is fine... I think you got what I meant.") or the double quotes and the string wrapped by them, if the string doesn't contain single quote'? you better edit your question, to explain a bit. e.g.line: xxx, what you want to get is yyyyuse the code block pls.