ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Regexr

Create, test, and learn regular expressions with live matching. Use when validating patterns, checking groups, generating regex, linting syntax.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bytesagain1/regexr
Or

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

Metadata

Stars3917
Views0
Updated2026-04-08
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bytesagain1-regexr": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#regex#regexp#正则表达式#pattern#javascript#utility#developer
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.