REGEX-Escape for: { "conditionId": { "resource": "direct", "va...

Your Input:
Result, the escaped string:
\{ "conditionId"\: \{ "resource"\: "direct", "value"\: \{ "id"\: "api\-authCheck\-result\-errorInfo\-A03", "note"\: "XXXXXX", "logic"\: "and", "set"\: \{ "0"\: \{ "logic"\: "and", "value"\: \[ \{ "resource"\: "direct", "value"\: true \} \], "target"\: \{ "resource"\: "vuex", "path"\: "cart\.ols\.api\.authCheck\.body\.body\.errorInfo", "helper"\: \[ \{ "helper\-isIncludes"\: \{ "resource"\: "direct", "value"\: "A03" \} \} \] \} \} \} \} \}, "elementStatus"\: "element\-status\-able" \}

What must the escaping look like for:
{ "conditionId": { "resource": "direct", "value": { "id": "api-authCheck-result-errorInfo-A03", "note": "XXXXXX", "logic": "and", "set": { "0": { "logic": "and", "value": [ { "resource": "direct", "value": true } ], "target": { "resource": "vuex", "path": "cart.ols.api.authCheck.body.body.errorInfo", "helper": [ { "helper-isIncludes": { "resource": "direct", "value": "A03" } } ] } } } } }, "elementStatus": "element-status-able" }

The excaped text for use in a regex is:
\{ "conditionId"\: \{ "resource"\: "direct", "value"\: \{ "id"\: "api\-authCheck\-result\-errorInfo\-A03", "note"\: "XXXXXX", "logic"\: "and", "set"\: \{ "0"\: \{ "logic"\: "and", "value"\: \[ \{ "resource"\: "direct", "value"\: true \} \], "target"\: \{ "resource"\: "vuex", "path"\: "cart\.ols\.api\.authCheck\.body\.body\.errorInfo", "helper"\: \[ \{ "helper\-isIncludes"\: \{ "resource"\: "direct", "value"\: "A03" \} \} \] \} \} \} \} \}, "elementStatus"\: "element\-status\-able" \}


Ads