Regex Master

v1.0.0

Generate, explain, test, and extract using regular expressions, plus convert natural language descriptions into regex patterns.

0· 38·0 current·0 all-time
byLv Lancer@kaiyuelv

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for kaiyuelv/regex-master.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Regex Master" (kaiyuelv/regex-master) from ClawHub.
Skill page: https://clawhub.ai/kaiyuelv/regex-master
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install regex-master

ClawHub CLI

Package manager switcher

npx clawhub@latest install regex-master
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (regex generation, testing, explanation, extraction) matches the included files (scripts/regex_engine.py, examples, tests) and SKILL.md. Templates and NL->regex mappings are consistent with the stated features; no unrelated credentials, binaries, or external services are requested.
Instruction Scope
SKILL.md instructs only how to instantiate and use RegexMaster APIs (test, explain, generate, extract_all, replace, templates). It does not direct the agent to read arbitrary host files, environment variables, system state, or send data to external endpoints. Instructions are scoped to text/regex processing.
Install Mechanism
No install spec is present (instruction-only). The repository contains Python source and tests but no installer or remote download. Nothing in the files creates or executes code fetched from arbitrary URLs.
Credentials
The skill requests no environment variables, no credentials, and no config paths. All operations use in-process Python 're' and local logic; optional 'regex' dependency is noted but not required.
Persistence & Privilege
Flags are default: always=false and agent invocation not disabled. The skill does not modify other skills or system configuration and does not request persistent installation or elevated privileges.
Assessment
This skill appears coherent and implements only local regex functionality. If you plan to run it on sensitive text (names, phone numbers, ID numbers, credit cards, emails), be aware it can extract such data because that's its purpose—avoid feeding it data you don't want processed or stored by whatever environment runs the skill. Also confirm you trust the source before executing code from the included scripts in your environment (standard precaution when running third-party Python code).

Like a lobster shell, security has layers — review code before you run it.

developer-toolsvk97f768f5zy70br1csftmbqp6h85nfzplatestvk97f768f5zy70br1csftmbqp6h85nfzppattern-matchingvk97f768f5zy70br1csftmbqp6h85nfzpregexvk97f768f5zy70br1csftmbqp6h85nfzptext-processingvk97f768f5zy70br1csftmbqp6h85nfzp
38downloads
0stars
1versions
Updated 20h ago
v1.0.0
MIT-0

regex-master

技能概述

正则表达式生成、测试、解释与可视化工具集。帮助用户快速构建、验证和理解正则表达式,提供自然语言描述到正则的自动转换。

何时使用

  • 需要从零构建正则表达式时
  • 需要解释现有正则的含义时
  • 需要测试正则是否匹配目标文本时
  • 需要提取文本中特定模式的数据时

使用方法

基础用法

from scripts.regex_engine import RegexMaster

rm = RegexMaster()

# 测试正则是否匹配
result = rm.test("^\d{11}$", "13800138000")
# -> {"match": true, "groups": []}

# 解释正则含义
explanation = rm.explain("^(?=.*[A-Z])(?=.*\d).{8,}$")
# -> 密码强度检查:至少8位,含大写字母和数字

# 从自然语言生成正则
pattern = rm.generate("提取中国大陆手机号")
# -> "1[3-9]\\d{9}"

# 在文本中提取所有匹配
matches = rm.extract_all("\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}\\b", text)
# -> ["user@example.com", "admin@test.org"]

文件结构

regex-master/
├── SKILL.md
├── README.md
├── requirements.txt
├── scripts/
│   └── regex_engine.py      # 核心引擎
├── examples/
│   └── basic_usage.py         # 使用示例
└── tests/
    └── test_regex_master.py   # 单元测试

依赖

  • re (Python 内置)
  • 可选: regex 库提供更强大的正则支持

标签

regex, pattern-matching, text-processing, developer-tools

Comments

Loading comments...