Look-around might be an option:
(?<=")[^"]*(?=")
(?<=") checks that the previous character is " .
(?=") checks that the next character is " .
Test .
An alternative is simply grouping :
"([^"]*)"
How to extract a group depends on the language used.
Test . (note the "Matching groups" area)
I didn’t just use "(.*)" Because the string abc "def" "ghi" would match "def" "ghi" , although you might want to match "def" and "ghi" separately. An alternative to [^"] is an undesired match - "(.*?)" , Which will match the string as little as possible.
source share