{"slug":"api-jagent-dev-v1-regex-test-e369cc","title":"Test a JavaScript regular expression","host":"api.jagent.dev","method":"POST","resource":"https://api.jagent.dev/v1/regex-test","category":"code","description":"Test a JavaScript regular expression. Send JSON: pattern, text, optional flags (d g i m s u y), replacement, max_matches (1-1000, default 100). Returns valid, matched, count, truncated, matches [{match,index,groups,named}], and replaced if you sent a replacement. An invalid pattern returns valid:fal","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"flags":"g","pattern":"(\\d+)-(\\d+)","text":"10-20 and 3-4"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Test a JavaScript regular expression. Send JSON: pattern, text, optional flags (d g i m s u y), replacement, max_matches (1-1000, default 100). Returns valid, matched, count, truncated, matches [{match,index,groups,named}], and replaced if you sent a replacement. An invalid pattern returns valid:false with the error. Runs are limited to 200 ms (422 on timeout). Max body 256 KB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","last_updated":"2026-09-28T07:15:08.865Z","schemes":["exact"]}