1

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!

Joseph
  • 41
  • 3

0 Answers0