I want to match the strings inside random texts
"quoted text"
"valid \" escaped quote"
"balanced \\\" quotes"
But not the strings
"\\\"
"text"with quote"
Regex demo
correct answer
^"([^"\\]*(?:\\.[^"\\]*)*)"$
Thanks for Reference!