{"uid":"cap_SPbp9oEPpujILoqkQsw-I","slug":"geekvault-regex-test-ea92fe75","name":"GeekVault Regex Test","description":"Network, docs, image, web, and dev utility tools paid per call via x402. No signup, no API keys, no subscriptions — just USDC on Base.","url":"https://api.geekvault.dev/dev-tools/v1/regex-test?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text","pattern"],"properties":{"text":{"type":"string"},"pattern":{"type":"string","description":"Sintaxis regex del crate Rust `regex` (similar a RE2/PCRE, sin backreferences ni lookaround)."}}},"responseSchema":{"type":"object","required":["is_match","matches","truncated"],"properties":{"matches":{"type":"array","items":{"type":"string"}},"is_match":{"type":"boolean"},"truncated":{"type":"boolean","description":"true si habia mas de MAX_MATCHES coincidencias y se cortaron."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__qFyT-yYlxRVwk0ZFUvnX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests a regex pattern against a text string and returns whether it matches plus all captured match strings","exampleAgentPrompt":"Test whether the string 'user@example.com' matches the regex pattern '^[\\w.+-]+@[\\w-]+\\.[\\w.]+$' and tell me if it's a valid email format.","exampleUseCases":[{"title":"Email format validation","prompt":"Check if 'john.doe+tag@company.co.uk' matches the email regex pattern '^[\\w.+-]+@[\\w-]+\\.[\\w.-]+$' and tell me whether it's valid."},{"title":"Log line pattern extraction","prompt":"Run the regex '(ERROR|WARN)\\s+(\\d{4}-\\d{2}-\\d{2})' against the text '2024-01-15 ERROR 2024-01-15 disk full on node-3' and give me all the matches."},{"title":"Phone number format check","prompt":"Does the string '+1-800-555-0199' match the pattern '^\\+?[1-9]\\d{0,2}[-\\s]?\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$'? I want to know if it's a valid international phone number format."}],"resultDescription":"Returns a JSON object with 'is_match' (boolean indicating whether the pattern matched the text at all) and 'matches' (an array of strings containing all matched substrings). Uses Rust's `regex` crate syntax, which is similar to RE2/PCRE but without backreferences or lookahead/lookbehind.","failureModes":["Invalid regex pattern syntax returns an error (pattern uses unsupported features like backreferences or lookaround not supported by Rust regex crate)","Empty text or pattern may return is_match: false with empty matches array","Pattern compiles but matches nothing: is_match is false and matches is empty array","Payment failure via x402 if USDC balance is insufficient or Base network is congested"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless regex match/extraction without spinning up a local runtime — especially useful in agent pipelines that lack a code-execution sandbox. Ideal for validating or extracting patterns from user input, log lines, or scraped text on the fly. Note the Rust regex crate syntax limitation: patterns requiring lookahead, lookbehind, or backreferences will not work here.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:21:36.843Z","isFirstParty":false,"canonicalSlug":"geekvault-regex-test-ea92fe75"}