openclaw-regex-engine

Production-grade regex processing suite — test patterns with capture groups, explain any regex in plain English, build regex from natural language descriptions, browse 50+ battle-tested patterns, and find-replace with backreferences. Use when: (1) user says 'test this regex' or 'does this pattern match', (2) user asks 'explain this regex' or 'what does this regex do', (3) user needs to 'build a regex for emails' or 'create a pattern that matches URLs', (4) user wants a 'ready-made regex for phone numbers' or 'UUID pattern', (5) user requests 'regex find and replace' or 'search and replace with backreferences'. Supports all ES2024 flags, named groups, lookahead/lookbehind. Zero install, sub-100ms on Cloudflare Workers. Free + Pro $9/mo.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-regex-engine" with this command: npx skills add yedanyagamiai-cmd/openclaw-regex-engine

OpenClaw Regex Engine v2.0

Master regular expressions -- 5 tools to test, explain, build, browse, and replace patterns instantly.

Quick Reference

SituationActionTool
Have a regex, need to test itRun against text, get all matches + groupsregex_test
Found a scary regex in legacy codeGet plain-English breakdown of every tokenregex_explain
Know WHAT to match but not HOWDescribe in English, get production regexregex_build
Need a standard pattern (email, URL, IP)Browse 50+ battle-tested patternsregex_library
Need to transform text with regexFind-replace with backreferences ($1, $2)regex_replace
Complex pattern with capture groupsTest + Explain combo for full understandingregex_test + regex_explain

What's New in v2.0

  • :brain: PatternForge Builder -- Describe what you want in plain English. Get a production-ready regex with positive/negative test cases, flags, and explanation included.
  • :book: RegexLens Explainer -- Break any regex into human-readable components token-by-token. Even nested lookaheads, possessive quantifiers, and Unicode categories.
  • :file_cabinet: BattleTest Library -- 50+ curated patterns for email, URL, phone (international), IPv4/IPv6, UUID, JWT, credit card, date formats, file paths, and more. Every pattern includes test cases.
  • :arrows_counterclockwise: SmartReplace Engine -- Full backreference support including named groups, global/first-match modes, and before/after diff preview.

MCP Quick Start

{
  "openclaw-regex": {
    "type": "streamable-http",
    "url": "https://regex-engine-mcp.yagami8095.workers.dev/mcp"
  }
}

Add to Claude Desktop, Cursor, Windsurf, VS Code, or any MCP-compatible client. No API key needed for Free tier. Works immediately.

Detection Triggers

This skill activates when you say:

  • "test this regex" / "does this pattern match" / "run this regex against"
  • "explain this regex" / "what does this regex do" / "break down this pattern"
  • "build a regex for" / "create a pattern that matches" / "regex for emails"
  • "regex for URL" / "phone number regex" / "UUID pattern" / "IP address regex"
  • "regex replace" / "find and replace with regex" / "search and replace with capture groups"
  • "regular expression" / "pattern matching" / "capture groups" / "backreference"

Tools (5)

regex_test -- Match & Capture (PatternMatch Protocol)

Test a regex pattern against input text. Returns every match with full capture group detail, named groups, and exact index positions.

ParameterTypeDefaultDescription
patternstringrequiredRegex pattern to test
textstringrequiredInput text to match against
flagsstring"g"Flags: g global, i case-insensitive, m multiline, s dotall, u unicode, v unicodeSets

Output: { matchCount, matches: [{ index, match, groups: [], namedGroups: {} }], executionTimeMs }

WRONG vs RIGHT

WRONG -- Manually scanning text to check if a pattern works:

User: Does this regex match my test string?
Agent: *reads the regex visually, guesses "yes it should match"* — misses edge case with nested groups

RIGHT -- Use regex_test:

User: Does this regex match my test string?
Agent: calls regex_test → "3 matches found. Match 1 at index 15: 'user@example.com', group 1: 'user', group 2: 'example.com'"

regex_explain -- Human-Readable Breakdown (RegexLens)

Break any regex into plain English, token by token. Each component gets a description, what it matches, and example matches.

ParameterTypeDefaultDescription
patternstringrequiredRegex pattern to explain
flagsstring""Active flags to include in explanation

Handles: Character classes, quantifiers, anchors, groups (capturing, non-capturing, named), lookahead/lookbehind (positive and negative), backreferences, Unicode categories, and alternation.

Output: Array of { token, type, description, matches_example } plus overall summary.

WRONG vs RIGHT

WRONG -- Staring at ^(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%])[A-Za-z0-9!@#$%]{8,}$ and guessing:

User: What does this regex do?
Agent: *guesses* "It matches passwords maybe?" — no detail on the lookaheads or minimum length

RIGHT -- Use regex_explain:

User: What does this regex do?
Agent: calls regex_explain → "Password validator: requires at least 1 uppercase letter (lookahead 1), 1 digit (lookahead 2), 1 special char from !@#$% (lookahead 3), minimum 8 characters total from allowed set"

regex_build -- Natural Language to Regex (PatternForge)

Describe what you want to match in plain English. Get a production-ready regex with recommended flags, explanation, and test cases (both positive and negative).

ParameterTypeDefaultDescription
descriptionstringrequiredPlain English description of what to match
optionsobject{}strict: boolean for anchored patterns, examples: string[] for guidance

Output: { pattern, flags, explanation, testCases: { shouldMatch: [], shouldNotMatch: [] } }

Example: Input "match email addresses" produces a complete RFC-5322-lite pattern with 5 positive and 5 negative test cases.


regex_library -- Pattern Collection (BattleTest Library)

Browse 50+ curated, production-tested regex patterns organized by category. Every pattern includes the regex string, description, recommended flags, and positive/negative test cases.

ParameterTypeDefaultDescription
categorystring""Filter by category: email, url, ip, phone, date, uuid, jwt, credit_card, password, html, file_path, css
searchstring""Free-text search across pattern names and descriptions

Categories: email, URL, IPv4, IPv6, phone (US, UK, JP, international), date (ISO, US, EU), UUID (v1-v5), JWT, credit card (Visa, MC, Amex), password strength, HTML tags, file paths (Unix, Windows), CSS selectors, color codes, semantic versioning.


regex_replace -- Find & Replace (SmartReplace Engine)

Perform regex-based find-and-replace with full capture group reference support ($1, $2, named groups), global and first-match modes.

ParameterTypeDefaultDescription
patternstringrequiredRegex pattern to find
replacementstringrequiredReplacement string with $1, $2, $<name> references
textstringrequiredInput text to transform
flagsstring"g"Regex flags

Output: { result, replacementCount, diff: { before, after } }

Supports: $1-$9 numbered backreferences, $<name> named backreferences, $& full match, $` pre-match, $' post-match.

What NOT to Do

Don'tWhyDo Instead
Use catastrophic backtracking patterns like (a+)+$Will timeout on edge workers (~50ms limit)Rewrite with atomic groups or possessive quantifiers
Expect PCRE-only features (conditional patterns, recursion)Uses JavaScript ES2024 regex engineStick to JS-compatible syntax
Send input text over 100KBMemory limits on edge workersSplit large texts into chunks
Rely on patterns for security validation aloneRegex is for format checking, not sanitizationCombine with server-side validation
Use regex_build for complex parsersNL-to-regex handles single patterns, not grammarsBuild complex patterns manually with regex_explain to verify

Security & Privacy

WhatStatus
Reads your input text and patternsYes -- for processing only
Stores your dataNo -- zero persistence, stateless edge processing
Sends data to third partiesNo -- processed entirely on Cloudflare Workers
Logs request contentNo -- only anonymous usage counters
Executes patterns server-sideYes -- sandboxed with 50ms timeout to prevent ReDoS
Requires authenticationFree tier: no. Pro: API key header only

Pricing

TierCalls/DayPriceWhat You Get
Free20$0All 5 regex tools, no signup
Pro1,000$9/moAll 9 OpenClaw servers (49 tools), priority routing
x402Pay-per-call$0.05 USDCNo account needed, crypto-native

Get Pro Key: https://buy.stripe.com/4gw5na5U19SP9TW288

The OpenClaw Intelligence Stack

ServerToolsBest For
JSON Toolkit6Format, validate, diff, query, transform JSON
Regex Engine5Test, extract, replace, explain regex patterns
Color Palette5Generate, convert, harmonize, accessibility-check colors
Timestamp Converter5Parse, format, diff, timezone-convert timestamps
Prompt Enhancer6Optimize, rewrite, score, A/B test AI prompts
Market Intelligence6AI market trends, GitHub stats, competitor analysis
Fortune & Tarot3Daily fortune, tarot readings, I Ching
Content Publisher8MoltBook posts, social content, newsletter
AgentForge Compare5Compare AI tools, frameworks, MCP servers

All 9 servers share one Pro key. $9/mo = 49 tools.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated