There are two parts to the fix for your problem, I think...
First, the .*?
means "zero or more of any character, repeated zero or one times", which is an odd way of writing .*
. More seriously, the 'any character' bit includes double quotes -- what you seem to be after is, therefore:
/"[^"]*"/g
This matches a double-quote, any string of characters excluding double quotes, and another double quote.
The second part is that you want to capture just the part inside the double quotes. In Perl or systems using PCRE (Perl-Compatible Regular Expressions) -- not sure whether Javascript falls into that category -- then you would use parentheses to capture the information you're after:
/"([^"]*)"/g
You then have to know how to get at the substrings - that varies from language to language, and I don't know enough Javascript to help at that point.