Regex Match Escaped string

// fixed: "([^"\\]|\\.)*"
// incremental: "([^"\\]|\\.|\\)*"?
const re = /"([^"\\\\]|\\\\.|\\\\)*"?/;
new RegExp('"([^"\\\\]|\\\\.|\\\\)*"?')

38180cookie-checkRegex Match Escaped string