6 baseurl=https://www.debuggex.com
9 regexjson=${regex//\\/\\\\}
10 regexjson=${regexjson//\"/\\\"}
14 curl "$baseurl/api/image" \
16 -H "Accept: application/json" \
17 -H "Content-Type: application/json;charset=utf-8" \
18 -d "{\"flavor\":\"python\",\"regex\":\"$regexjson\",\"strFlags\":\"\",\"testString\":\"My test data\",\"unitTests\":\"[]\"}" |\
19 grep -Eo 'token("[^"]+){2}' | cut -f3 -d'"'
23 wget "$baseurl/i/$token.png"