← 返回
开发者工具 中文

Regexpal

Test and debug regex patterns against sample text. Use when checking match groups, validating patterns, generating replacements, linting syntax.
针对示例文本测试和调试正则表达式模式。适用于检查匹配组、验证模式、生成替换内容以及语法检查。
xueyetianya
开发者工具 clawhub v3.0.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 597
下载
💾 5
安装
2
版本
#latest

概述

RegexPal

A real regex tester and toolkit for the terminal. Test patterns against text, find matches in files with highlighted output, perform replacements, extract capturing groups, and get human-readable explanations of regex syntax.

Commands

CommandDescription
----------------------
regexpal test Test if a regex matches text — reports full match, partial match, groups, and named groups
regexpal match Find all matches in a file — highlights matches in red, shows line numbers and match count
regexpal replace Replace all matches in a file and output to stdout. Supports backreferences (\1, \2)
regexpal extract Extract capturing groups from all matches in a file — shows each group value per match
regexpal explain Break down a regex pattern — lists character classes, groups, tokens, and quantifiers

Requirements

  • python3 (uses re stdlib module)

Examples

# Test a pattern
regexpal test '^\d{3}-\d{4}$' '123-4567'

# Find emails in a file
regexpal match '\w+@[\w.-]+' contacts.txt

# Replace version numbers
regexpal replace 'v(\d+)\.(\d+)' 'v\1.$((\\2+1))' changelog.md

# Extract domain parts from emails
regexpal extract '(\w+)@(\w+\.\w+)' emails.txt

# Understand a complex pattern
regexpal explain '(?<=@)[\w.-]+'

版本历史

共 2 个版本

  • v3.0.0 当前
    2026-03-29 19:16 安全 安全
  • v1.0.5
    2026-03-19 08:31

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,731
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,853
ai-intelligence

Excel Formula

xueyetianya
根据描述生成Excel公式并诊断电子表格错误。适用于编写VLOOKUP公式、调试错误或转换公式。支持...
★ 2 📥 6,120