Skip to main content
Glama
Br0ski777

regex-generator

by Br0ski777

Regex Tester API

MCP Server [! x402](https://x402.org) License: MIT

文字列に対して正規表現パターンをテストします。すべてのマッチ、キャプチャグループ、位置、そして平易な英語でのパターン説明を取得できます。x402 による呼び出しごとの課金(Base L2 上の USDC)-- API キー不要、登録不要、レート制限の壁もありません。

klymax402 マーケットプレイスの一部 -- AI エージェント向けの x402 マイクロペイメント API を 100 件提供。1 つのウォレットで、Base 上の USDC を使います。

クイックスタート -- 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 → 署名 → 再試行 のサイクルを自動的に処理します。

ツール

ツール

メソッド

パス

価格

説明

text_test_regex

POST

/api/test

$0.003

入力文字列に対して正規表現パターンをテストする

text_test_regex

1 つ以上の文字列に対して正規表現をテストする必要がある場合に使用します。すべてのマッチ、キャプチャグループ、位置、そして 人間がて読めるパターン説明を返します。

パラメータ

名前

型

必須

説明

パターン 文字列

string

はい

正規表現パターン(デリミタなし)

flags

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 を使用)。

エージェントプロンプトの例

  • "1 つ以上の文字列に対して正規表現をテストする"

支払い

  • プロトコル: x402 -- HTTP ネイティブの従量課金、サインアップ不要、API キー不要

  • ネットワーク: Base L2 (eip155:8453)

  • 資産: USDC

  • ファシリテーター: Coinbase CDP (プライマリ)、PayAAI (フォールバック)

  • ATXP(RFC 9728 準拠の保護リソース・メタデータ)を介した OAuth ラップ x402 にも対応

klymax4024 の一部

AI エージェント向けの x402 マイクロペイメント API を 100 件登録 -- 1 つのウォレット、Base 上の USDC、サインアップは不要です。

ライセンス

MIT

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for managing x402 payment policies (rules, coupons, tiers, usage logs) conversationally via LLM and evaluating request decisions.
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Lets users generate regex patterns from plain-English descriptions, then verifies them with Python's real re engine against generated positive and negative test strings, iterating on failures until they pass. It exposes this as a tool callable from MCP clients such as Claude Desktop or Claude Code.
    -