Original string:
some text \"some \\\"string\\\"right here \"
Want to get:
\"some \\\"string\\\"right here\"
You can use this regex :
/[^\\](\".*?[^\\]\")/g
[^\\] catch any caracter diferent of \. So \" will not be catch as start or end of your match.
[^\\]