Regex Match Escaped string

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

38180cookie-checkRegex Match Escaped string