Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

regexrregexr 测试

Agent Skill

regexr 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,659

周安装

329

GitHub Stars

公开资料未说明

下载量

2,685
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:regexr(regexr 测试)
来源仓库:https://github.com/bytesagain-lab/regexr
安装命令:
openclaw skills install regexr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install regexr

简介

通过实时匹配创建、测试和学习正则表达式。在验证模式、检查组、生成正则表达式、检查语法时使用。

SKILL.md

name
Regexr
description
Create, test, and learn regular expressions with live matching. Use when validating patterns, checking groups, generating regex, linting syntax.
version
2.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["regex", "regexp", "正则表达式", "pattern", "javascript", "utility", "developer"]
categories
["Developer Tools", "Utility"]
commands
description
显示RegExr工具的帮助信息和可用命令列表。
usage
regexr help
description
启动RegExr交互式界面,允许用户创建、测试和调试正则表达式。
usage
regexr run
description
提供RegExr工具的版本信息和相关资源链接。
usage
regexr info
description
检查RegExr工具的运行状态和依赖项健康状况。
usage
regexr status
changelog
date
2026-03-15
changes
pricing_model
free
license
MIT
docs_url
https://bytesagain.com/skills/regexr
support_url
https://bytesagain.com/feedback

Regexr

Developer tools CLI for checking, validating, generating, and working with regular expressions and code patterns. Lint syntax, explain complex expressions, convert between formats, generate templates, diff pattern versions, preview matches, fix common regex issues, and produce reports — all from the command line with persistent local logging.

Commands

Run regexr <command> [args] to use.

CommandDescription
checkCheck regex patterns for correctness and common pitfalls
validateValidate regex syntax and structure
generateGenerate regex patterns from descriptions or examples
formatFormat and prettify regex expressions
lintLint regex for style, performance, and safety issues
explainExplain what a regex pattern does in plain language
convertConvert regex between flavors (PCRE, JS, Python, etc.)
templateApply or manage regex templates for common use cases
diffDiff two regex patterns and show behavioral differences
previewPreview regex matches against sample text
fixAuto-fix common regex issues (escaping, anchoring, etc.)
reportGenerate regex quality and coverage reports
statsShow summary statistics across all categories
export <fmt>Export data in json, csv, or txt format
search <term>Search across all logged entries
recentShow recent activity from history log
statusHealth check — version, data dir, disk usage
helpShow help and available commands
versionShow version (v2.0.0)

Each domain command (check, validate, generate, etc.) works in two modes:

  • Without arguments: displays the most recent 20 entries from that category
  • With arguments: logs the input with a timestamp and saves to the category log file

Data Storage

All data is stored locally in ~/.local/share/regexr/:

  • Each command creates its own log file (e.g., check.log, validate.log, generate.log)
  • A unified history.log tracks all activity across commands
  • Entries are stored in timestamp|value pipe-delimited format
  • Export supports JSON, CSV, and plain text formats

Requirements

  • Bash 4+ with set -euo pipefail strict mode
  • Standard Unix utilities: date, wc, du, tail, grep, sed, cat
  • No external dependencies or API keys required

When to Use

  1. Building and testing regex patterns — use generate to create patterns from descriptions, check to verify correctness, and preview to test against sample data
  2. Learning and understanding regex — use explain to break down complex patterns into plain-language descriptions, perfect for code reviews or onboarding
  3. Linting and fixing regex in codebases — run lint to catch performance and safety issues (catastrophic backtracking, unanchored patterns), then fix to auto-correct them
  4. Converting regex across languages — use convert to translate patterns between JavaScript, Python, PCRE, and other flavors when porting code
  5. Documenting regex usage in projects — log patterns with template, generate report summaries, and export data for documentation or audits

Examples

# Check a regex pattern for issues
regexr check "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$ — email validation"

# Validate regex syntax
regexr validate "(?<=@)[a-z]+\.com — lookbehind syntax OK"

# Generate a pattern from description
regexr generate "match IPv4 addresses: \d{1,3}(\.\d{1,3}){3}"

# Explain a complex regex
regexr explain "^(?=.*[A-Z])(?=.*\d).{8,}$ — password: 1 uppercase, 1 digit, 8+ chars"

# Lint for performance issues
regexr lint "(a+)+ — warning: catastrophic backtracking possible"

# Convert between flavors
regexr convert "JS→Python: /\d+/g becomes re.findall(r'\d+', text)"

# Fix common issues
regexr fix "added anchors: ^pattern$ and escaped special chars"

# Preview matches
regexr preview "pattern=[0-9]{3}-[0-9]{4} matched: 555-1234, 800-9999"

# View summary statistics
regexr stats

# Export all data as JSON
regexr export json

# Search logged patterns
regexr search "email"

Output

All commands output to stdout. Redirect to a file if needed:

regexr report "weekly pattern audit" > report.txt
regexr export csv  # saves to ~/.local/share/regexr/export.csv

Configuration

Set DATA_DIR by modifying the script, or use the default: ~/.local/share/regexr/


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.75%
按下载量换算2,195

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills