{"uid":"cap_7qIjtj9TA9qVkIuLjIk2Q","slug":"regex-test-12dd8587","name":"Regex Test","description":"Test a regular expression against text; returns match status, capture groups and span.","url":"https://x402.agentindex.world/regex/test?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text"},"pattern":{"type":"string","title":"Pattern"},"ignore_case":{"type":"boolean","title":"Ignore Case","default":false}}},"responseSchema":{"type":"json","example":{"span":[6,16],"groups":["2026","03","15"],"matches":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h-x_Arbs3c4wlQd-Fk0q0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests whether a regex pattern matches a given text string, returning match span, capture groups, and a boolean result","exampleAgentPrompt":"Test whether the text 'Meeting scheduled for 2026-03-15 at noon' matches the regex pattern '(\\d{4})-(\\d{2})-(\\d{2})' and tell me the captured groups and where in the string the match was found.","exampleUseCases":[{"title":"Date format validation in pipeline","prompt":"Check if the string '2026-03-15' matches the regex pattern '(\\d{4})-(\\d{2})-(\\d{2})' and give me the captured year, month, and day groups."},{"title":"Case-insensitive email domain check","prompt":"Test whether 'user@Example.COM' matches the pattern '[\\w.]+@example\\.com' with case ignored, and tell me if it matches."},{"title":"Extracting version number from release notes","prompt":"Does the text 'Released v3.12.0 on Monday' match the regex 'v(\\d+)\\.(\\d+)\\.(\\d+)'? If so, what are the captured version components and where in the string?"}],"resultDescription":"Returns a JSON object with a 'matches' boolean indicating whether the pattern matched, a 'span' array with the start and end character positions of the match, and a 'groups' array containing any captured subgroup strings from the pattern.","failureModes":["Invalid regex pattern syntax returns an error response","Empty text or pattern fields may return no match or an error","Pattern with no capture groups returns an empty groups array","Extremely long text or complex patterns may time out"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically test or validate a regular expression against a specific string at runtime, especially when capture groups and match position are needed. It is ideal for data validation pipelines, parsing structured strings like dates or version numbers, or when the agent needs to confirm pattern correctness before applying it at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:30:16.369Z","isFirstParty":false,"canonicalSlug":"regex-test-12dd8587"}