regex-generator
Regex Tester API
针对字符串测试正则表达式模式。获取所有匹配项、捕获组、位置以及通俗易懂的模式说明。通过 x402(Base L2 上的 USDC)按次付费——无需 API 密钥,无需注册,也没有速率限制。
属于 klymax402 市场的一部分——为 AI 智能体打造的 100 个 x402 微支付 API,一个钱包,USDC 在 Base 上结算。
快速开始 -- MCP
将以下内容添加到你的 MCP 客户端配置中(Claude Desktop、Cursor、ElizaOS 等):
{
"mcpServers": {
"regex-generator": {
"url": "https://regex-generator.api.klymax402.com/mcp"
}
}
}Related MCP server: x402-sub-agent-mcp
快速开始 -- HTTP(x402)
curl -X POST "https://regex-generator.api.klymax402.com/api/test" \
-H "Content-Type: application/json" \
-d '{"pattern":"...","testStrings":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试循环。
工具
工具 | 方法 | 路径 | 价格 | 描述 |
| POST |
| $0.003 | 针对输入字符串测试正则表达式模式 |
text_test_regex
当你需要针对一个或多个字符串测试某个正则表达式时,使用此工具。它返回所有匹配项、捕获组、位置以及人类可读的模式说明。
参数
名称 | 类型 | 必填 | 描述 |
| string | 是 | 正则表达式模式(不含定界符) |
| string | 否 | 正则表达式标志:g、i、m、s、u(默认:g) |
| array | 是 | 用于测试该模式的字符串数组 |
示例响应:
{"pattern":"\d{3}-\d{4}","flags":"g","explanation":"Matches 3 digits, a hyphen, then 4 digits","results":[{"input":"Call 555-1234","matched":true,"matches":[{"value":"555-1234","index":5,"groups":[]}]}],"totalMatches":1}适用场景:在将正则模式部署到代码中之前进行验证、调试某个模式为何无法匹配,或从文本中提取结构化数据。在把复杂正则写入生产代码之前,请先使用此工具。
不适用于:文本分类(请使用 text_classify_content)、PII 检测(请使用 privacy_detect_pii)、文本文本比较(请使用 text_compare_diff)。
示例智能体提示词
"针对一个或多个字符串测试某个正则表达式"
支付
协议:x402 -- 基于 HTTP 的原生按次付费,无需注册,无需 API 密钥
网络:Base L2(
eip155:8453)资产:USDC
促成方:Coinbase CDP(主要)、PayAI(备用)
也可通过 ATXP(OAuth 包装的 x402,RFC 9728 受保护资源元数据)访问
属于 klymax402
为 AI 智能体打造的 100 个 x402 微支付 API——一个钱包,USDC 在 Base 上结算,无需注册。
完整 API 参考:https://klymax402.com/llms-full.txt
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenance23 pay-per-call web analysis APIs as MCP tools. Security audits, tech stack detection, email verification, SEO analysis, SSL checks, performance monitoring. Supports x402 and Stripe MPP payments.516MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for managing x402 payment policies (rules, coupons, tiers, usage logs) conversationally via LLM and evaluating request decisions.
- AlicenseNot gradedqualityBmaintenanceProvides GDPR compliance scanning for websites via the MCP protocol, with pay-per-call using x402 micropayments.MIT
- AlicenseNot gradedqualityCmaintenanceValidates regex, cron, and SQL expressions by executing them in real runtimes, with payments via x402 USDC on Base.MIT
Related MCP Connectors
Valida regex, cron y SQL contra ejecucion real. Pago por llamada via x402/USDC.
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
A paid remote MCP for CodeG, built to return verdicts, receipts, usage logs, and audit-ready JSON.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/regex-generator-x402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server