HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · STELLAR · ROBINHOOD · USDC · USDG

Regex tester

Test a regular expression against text and get match results plus text statistics — the quick validation loop for pattern development.

When to use this pack

A developer is writing a regex (email extraction, log parsing, URL matching) and needs to see matches + capture groups + text stats in one shot. Faster than switching between a regex tester and a word counter.

Tools in this pack

Workflow

  1. Run the regex against the text — returns all matches, capture groups, and match indices.
  2. Compute text-stats on the input text — word count, character count, line count. Useful context for understanding match density (e.g. 2 matches in 50 words = low density).

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Test the regex \b\w+@\w+\.\w+\b against "Contact us at hello@example.com or support@test.org" using Agent402: (1) regex {pattern, text, flags:"g"} — get matches. (2) text-stats {text} — get word/char counts. Return {matches, stats}.

← All skill packs