{"uid":"cap_S7VWLYQgvuf371JSsCOCL","slug":"api-x402node-dev-01395c17","name":"Regex Tester & Pattern Matcher","description":"regex test, test regex, regex tester, test regular expression, regex test online, regex pattern test, regular expression test, pattern matcher, JavaScript regex test, find regex matches, regex validator, regex debugger, regex 101 alternative. Test any regex pattern against text. Returns all matches with capture groups and indices. For AI agents, pattern extraction, text validation, log parsing. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/dev/regex-test","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pattern","text"],"properties":{"text":{"type":"string","description":"Input text (required)"},"flags":{"type":"string","description":"Flags (optional)"},"pattern":{"type":"string","description":"Pattern (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"text":"Order placed on 2024-03-15, shipped on 2024-03-18","flags":"g","pattern":"(\\d{4}-\\d{2}-\\d{2})"},"response":{"meta":{"source":"x402node.com"},"text":"Order placed on 2024-03-15, shipped on 2024-03-18","_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","flags":"g","matched":true,"matches":[{"index":16,"match":"2024-03-15","groups":["2024-03-15"],"named_groups":null},{"index":39,"match":"2024-03-18","groups":["2024-03-18"],"named_groups":null}],"pattern":"(\\d{4}-\\d{2}-\\d{2})","match_count":2,"test_result":true}},"exampleRequest":{"text":"Order placed on 2024-03-15, shipped on 2024-03-18","flags":"g","pattern":"(\\d{4}-\\d{2}-\\d{2})"},"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cuBb6Z36-wNpk_OPSwyDp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests a regular expression pattern against input text and returns all matches, capture groups, and match indices","exampleAgentPrompt":"Test the regex pattern `(\\d{4}-\\d{2}-\\d{2})` against this text: 'Order placed on 2024-03-15, shipped on 2024-03-18' — show me all matches and capture groups.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: the original pattern, a boolean indicating whether any match was found, an array of all matches (including capture groups and their indices), the flags used, and the total match count.","failureModes":["Invalid regex syntax causes a 400-level error with a description of the parse failure","Empty pattern or text fields may return no matches or an error","Catastrophic backtracking on complex patterns may cause a timeout","Unsupported regex flags may be ignored or cause an error"],"whenToPreferThis":"Use this endpoint when you need to test, debug, or apply a regular expression to extract structured data from unstructured text — especially when you need capture group details and match indices. Prefer it over string search endpoints when pattern complexity requires regex semantics, or when you need all matches with positional metadata rather than a simple true/false.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:53:25.491Z","isFirstParty":false}