{"uid":"cap_C7ibq5K2IDqb08JOqXhLL","slug":"bitbooth-regex-test-3ea5f62d","name":"BitBooth Regex Test","description":"BitBooth Regex Test: pay 0.001 USDC, safely compile and run a regex against a corpus. Returns structured matches with capture groups, indices, and lengths. JS engine flags (g, i, m, s, u, y, d). Hard CPU deadline guards against catastrophic backtracking (ReDoS) — `regex_timeout` is reported instead of stalling. Stateless, no API key.","url":"https://app.heinrichstech.com/v1/cdp/regex-test?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["pattern","input"],"properties":{"flags":{"type":"string","maxLength":8},"input":{"type":"string"},"pattern":{"type":"string","maxLength":1024},"captureLimit":{"type":"integer","maximum":1000,"minimum":1}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8gN4NgORXTbSI6093Tsm2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Safely compiles and runs a JavaScript regex against a text corpus, returning structured matches with capture groups, indices, and lengths, with ReDoS protection via a hard CPU deadline.","exampleAgentPrompt":"Can you run the regex /^(\\d{4})-(\\d{2})-(\\d{2})$/ with the 'g' and 'm' flags against this text and give me all the matches with their capture groups and positions: '2024-01-15\\nfoo\\n2023-12-31'?","exampleUseCases":[{"title":"Extract dates from log file","prompt":"Run the regex /(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})/ with the 'g' flag against this server log text and return all timestamp matches with their capture groups and character positions: '[2024-01-15T12:34:56] ERROR: disk full\\n[2024-01-15T12:35:01] INFO: retry'"},{"title":"Validate email pattern against user list","prompt":"Test the regex /^([\\w.+-]+)@([\\w-]+\\.[\\w.]+)$/ with the 'gm' flags against this list of email addresses and tell me which ones match and what the capture groups are: 'alice@example.com\\nnot-an-email\\nbob.jones@company.co.uk'"},{"title":"Guard against catastrophic backtracking","prompt":"I have a potentially dangerous regex pattern /(a+)+$/ — can you safely run it against the string 'aaaaaaaaaaaaaaaaaaaaaaab' using your ReDoS-protected regex tester and tell me if it times out or returns matches?"}],"resultDescription":"A structured JSON response containing an array of matches, each with the full match string, an array of capture group values, the zero-based start index in the corpus, and the match length. If the regex execution exceeds the CPU deadline due to catastrophic backtracking, a `regex_timeout` flag is set instead of stalling indefinitely.","failureModes":["Catastrophic backtracking / ReDoS: returns regex_timeout flag instead of hanging","Invalid regex syntax: returns a compile error","Invalid JS flags: returns a validation error","Payment not included or insufficient: returns 402 Payment Required","Malformed request body: returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need to safely execute JavaScript regex patterns — especially untrusted or user-supplied patterns — against a text corpus without risking server-side ReDoS hangs. Ideal for agents that need structured match data (capture groups, indices, lengths) rather than a simple boolean match. The hard CPU deadline makes it safe for production use with arbitrary patterns. Prefer it over client-side execution when you need a stateless, auditable, pay-per-use match service with no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:49:01.050Z","isFirstParty":false,"canonicalSlug":"bitbooth-regex-test-3ea5f62d"}