REGEX-Escape for: {\"model_version\":\"([^\\s]+)\",\"n_claim_number\&quo...

Your Input:
Result, the escaped string:
\{\\"model_version\\"\:\\"\(\[\^\\\\s\]\+\)\\",\\"n_claim_number\\"\:\\"000556314722\\",\\"n_item_id_p\\"\:\\"8DC0582C5003967D\\",\\"detailed_loss_type\\"\:\\"Rear\-end accident \- multiple cars\\",\\"predictions\\"\:\[\{\\"item_id\\"\:\\"42CD5270DAEAE62E\\",\\"score_0\\"\:0\.9856438636779785,\\"score_100\\"\:0\.00996201392263174,\\"score_offset\\"\:0\.004394162446260452\},\{\\"item_id\\"\:\\"58BF621EC00B1408\\",\\"score_0\\"\:0\.9896064400672913,\\"score_100\\"\:0\.006884041242301464,\\"score_offset\\"\:0\.0035094714257866144\}\]\}


Ads

What must the escaping look like for:
{\"model_version\":\"([^\\s]+)\",\"n_claim_number\":\"000556314722\",\"n_item_id_p\":\"8DC0582C5003967D\",\"detailed_loss_type\":\"Rear-end accident - multiple cars\",\"predictions\":[{\"item_id\":\"42CD5270DAEAE62E\",\"score_0\":0.9856438636779785,\"score_100\":0.00996201392263174,\"score_offset\":0.004394162446260452},{\"item_id\":\"58BF621EC00B1408\",\"score_0\":0.9896064400672913,\"score_100\":0.006884041242301464,\"score_offset\":0.0035094714257866144}]}

The excaped text for use in a regex is:

\{\\"model_version\\"\:\\"\(\[\^\\\\s\]\+\)\\",\\"n_claim_number\\"\:\\"000556314722\\",\\"n_item_id_p\\"\:\\"8DC0582C5003967D\\",\\"detailed_loss_type\\"\:\\"Rear\-end accident \- multiple cars\\",\\"predictions\\"\:\[\{\\"item_id\\"\:\\"42CD5270DAEAE62E\\",\\"score_0\\"\:0\.9856438636779785,\\"score_100\\"\:0\.00996201392263174,\\"score_offset\\"\:0\.004394162446260452\},\{\\"item_id\\"\:\\"58BF621EC00B1408\\",\\"score_0\\"\:0\.9896064400672913,\\"score_100\\"\:0\.006884041242301464,\\"score_offset\\"\:0\.0035094714257866144\}\]\}


Ads