{"uid":"cap__i8C6Em13kT9L0ocMLFUQ","slug":"regex-test-ff46de29","name":"Regex Test","description":"Regex tester: runs a JavaScript regular expression (pattern or /pattern/flags) against your text with the global flag, returning every match with index, the capture groups and named groups, the match count, and a 2-second timeout guard against catastrophic patterns. Text is not stored. $0.01 per test.","url":"https://intel.rallylive.ca/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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qmtQ-x7a-WgujYFsQmay9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a JavaScript regular expression against input text and returns all matches, capture groups, named groups, match count, and timing safety guard","exampleAgentPrompt":"Test the regex /([\\w.]+)@([\\w.]+\\.\\w+)/gi against this text: 'Contact us at hello@example.com or support@acme.org for help.' and show me all the matches with their capture groups.","exampleUseCases":[{"title":"Email extraction from raw text","prompt":"Run the regex /[\\w.+-]+@[\\w-]+\\.[\\w.]+/g against this paragraph and tell me every email address it finds along with their positions: 'Reach Alice at alice@corp.com, Bob at b.smith@startup.io, or our team at info@example.org.'"},{"title":"Validate date format pattern","prompt":"Test whether the pattern /^(\\d{4})-(\\d{2})-(\\d{2})$/ matches the string '2024-07-15' and return the year, month, and day capture groups."},{"title":"Count occurrences of a keyword pattern","prompt":"Run the regex /\\bError\\b/gi against this log snippet and tell me how many times it matches and at what character positions: 'ERROR: disk full. Error reading file. error in module X.'"}],"resultDescription":"Returns an array of all matches found using the global flag, each with the matched string, its character index in the input, any positional capture groups, and any named capture groups. Also returns the total match count. A 2-second timeout guard prevents catastrophic backtracking from hanging the request.","failureModes":["Invalid regex syntax returns an error response","Catastrophically backtracking patterns are killed after 2-second timeout","Missing required input parameters returns a validation error","Regex with no matches returns an empty matches array with count 0"],"whenToPreferThis":"Use this endpoint when you need server-side JavaScript regex execution with reliable timeout protection against ReDoS patterns, capture group extraction, named group support, and a structured match-by-match breakdown — especially when you cannot safely run regex in a client environment or need an auditable per-call record of regex results without storing the tested text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:32.831Z","isFirstParty":false}