REGEX-Escape for: "url": { "raw": "{{hostname}}:8082/opcode/163/0",...

Your Input:
Result, the escaped string:
"url"\: \{ "raw"\: "\{\{hostname\}\}\:8082\/opcode\/163\/0", "host"\: \[ "\{\{hostname\}\}" \], "port"\: "8082", "path"\: \[ "opcode", "163", "0" \] \}

What must the escaping look like for:
"url": { "raw": "{{hostname}}:8082/opcode/163/0", "host": [ "{{hostname}}" ], "port": "8082", "path": [ "opcode", "163", "0" ] }

The excaped text for use in a regex is:
"url"\: \{ "raw"\: "\{\{hostname\}\}\:8082\/opcode\/163\/0", "host"\: \[ "\{\{hostname\}\}" \], "port"\: "8082", "path"\: \[ "opcode", "163", "0" \] \}


Ads