{"slug":"wealth-agent-wealthagent-app-workers-dev-api-x402-regex-f72fdf","title":"Apply one regular expression to a text blob on the server and return every match","host":"wealth-agent.wealthagent-app.workers.dev","method":"POST","resource":"https://wealth-agent.wealthagent-app.workers.dev/api/x402/regex","category":"code","description":"Apply one regular expression to a text blob on the server and return every match with its index and capture groups. Deterministic, so the same input always returns the same answer. Useful for log triage, field extraction and validation at scale.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":546,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"flags":"g","pattern":"ERROR (\\w+)","text":"ERROR timeout\nINFO ok\nERROR io"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"flags":{"description":"g, i, m, s, u, y (optional)","type":"string"},"pattern":{"description":"Regular expression (max 200 chars)","type":"string"},"text":{"description":"Text to search (max 20,000 chars)","type":"string"}},"required":["pattern","text"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"deliverable":{"properties":{},"required":["kind","summary"],"type":["object","null"]},"error":{"type":["string","null"]},"job_id":{"type":["string","null"]},"note":{"type":"string"},"ok":{"type":"boolean"},"receipt_id":{"type":["string","null"]},"resource":{"type":"string"},"status":{"enum":["delivered","paid_not_delivered"],"type":"string"},"tx":{"type":["string","null"]}},"required":["ok","resource","status","deliverable"],"type":"object"},"type":{"type":"string"}},"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":546,"error":null}],"description_full":"Apply one regular expression to a text blob on the server and return every match with its index and capture groups. Deterministic, so the same input always returns the same answer. Useful for log triage, field extraction and validation at scale.","last_updated":"2026-10-19T12:39:56.153Z","schemes":["exact"]}