{"uid":"cap_bOeDoiMyznkd6EM-QgOkv","slug":"nexusapi-regex-test-6524794c","name":"NexusAPI Regex Test","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://nexus-api-peach-nine.vercel.app/api/tools/regex/test","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.144119","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.144119/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.144119","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.144119","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lML7qPkHik_RjrHY8CYxQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.144119","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests whether a given input string matches a specified regular expression pattern","exampleAgentPrompt":"Can you test whether the string 'hello@example.com' matches the email regex pattern '^[\\w.-]+@[\\w.-]+\\.\\w{2,}$'?","exampleUseCases":[{"title":"Email validation in user signup flows","prompt":"I need to check if user-submitted email addresses match our standard email format before processing them. Can you test a batch of these email addresses against the pattern '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$' to see which ones are valid?"},{"title":"Extracting phone numbers from text","prompt":"I'm getting customer messages with phone numbers in different formats. Can you check if this text contains a phone number matching the pattern '^\\+?1?\\d{9,15}$' and let me know if it matches and what the captured number is?"},{"title":"Validating API response data formats","prompt":"Our payment system returns transaction IDs in a specific format and I need to make sure they're correct before processing. Can you test whether 'TXN20240115ABC12345' matches this regex pattern '^TXN\\d{8}[A-Z]{3}\\d{5}$'?"}],"resultDescription":"Returns whether the input string matches the provided regex pattern, along with any captured groups or match details","failureModes":["Invalid regex pattern syntax returns an error","Empty input string may return false match","Missing required query field returns validation error","Malformed request body returns 400-style error"],"whenToPreferThis":"Use this endpoint when you need to programmatically test whether a string conforms to a regex pattern without executing code locally — useful for validating formats like emails, phone numbers, dates, or custom patterns in an agent workflow","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:31.115Z","isFirstParty":false}