{"id":51026699,"url":"https://github.com/gitstq/regexmaster","last_synced_at":"2026-06-21T20:02:14.282Z","repository":{"id":361228947,"uuid":"1253643871","full_name":"gitstq/regexmaster","owner":"gitstq","description":"🔍 A powerful terminal-based regex testing and debugging tool with AI-powered explanations, visual analysis, and performance optimization","archived":false,"fork":false,"pushed_at":"2026-05-29T17:13:14.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T19:09:13.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/gitstq/regexmaster","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T17:11:26.000Z","updated_at":"2026-05-29T17:13:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/regexmaster","commit_stats":null,"previous_names":["gitstq/regexmaster"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/regexmaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fregexmaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fregexmaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fregexmaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fregexmaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/regexmaster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fregexmaster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:13.386Z","updated_at":"2026-06-21T20:02:14.274Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3.10+-blue.svg\" alt=\"Python Version\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Status-Stable-brightgreen.svg\" alt=\"Status\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#简体中文\"\u003e简体中文\u003c/a\u003e |\n  \u003ca href=\"#繁體中文\"\u003e繁體中文\u003c/a\u003e |\n  \u003ca href=\"#english\"\u003eEnglish\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# 简体中文\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🔍 RegexMaster\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003e终端正则表达式测试与调试利器\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003eAI智能解释 · 可视化分析 · 性能优化 · 代码生成\u003c/p\u003e\n\u003c/div\u003e\n\n## 🎉 项目介绍\n\n**RegexMaster** 是一款专为开发者打造的终端正则表达式工具，让你无需离开终端即可高效测试、调试和优化正则表达式。\n\n### ✨ 核心特性\n\n- 🔍 **实时匹配测试** - 输入即匹配，实时高亮显示结果\n- 🤖 **AI智能解释** - 将复杂正则转换为自然语言说明\n- 📊 **可视化分析** - AST树状图展示，直观理解模式结构\n- ⚡ **性能优化** - 检测灾难性回溯，提供优化建议\n- 🛠️ **代码生成** - 一键生成 Python/JS/Go/Java 代码\n- 📚 **学习模式** - 交互式教程，从入门到精通\n- 🎨 **精美TUI** - 基于 Textual 的现代化终端界面\n\n### 🚀 快速开始\n\n#### 环境要求\n- Python 3.10 或更高版本\n- pip 包管理器\n\n#### 安装\n\n```bash\n# 使用 pip 安装\npip install regexmaster\n\n# 或使用简短命令\npip install rxm\n```\n\n#### 运行\n\n```bash\n# 启动交互式TUI\nregexmaster\n\n# 或使用简写\nrxm\n\n# 快速测试\nregexmaster test '\\d+' -t 'abc123def'\n\n# 解释模式\nregexmaster explain '\\d{3}-\\d{3}-\\d{4}'\n\n# 生成代码\nregexmaster generate '\\w+@[\\w.]+' -l python\n```\n\n### 📖 详细使用指南\n\n#### 交互式模式\n\n启动TUI后，你可以：\n1. 在 **Pattern** 输入框输入正则表达式\n2. 在 **Test Text** 区域输入测试文本\n3. 实时查看匹配结果\n\n#### 快捷键\n\n| 快捷键 | 功能 |\n|--------|------|\n| `Ctrl+E` | 解释当前模式 |\n| `Ctrl+G` | 生成代码 |\n| `Ctrl+O` | 性能优化分析 |\n| `Ctrl+L` | 清空输入 |\n| `Ctrl+Q` | 退出程序 |\n| `F1` | 帮助 |\n\n#### 命令行模式\n\n```bash\n# 测试匹配\nregexmaster test 'pattern' -t 'test text'\n\n# 解释模式\nregexmaster explain 'pattern'\n\n# 性能分析\nregexmaster optimize 'pattern' -t 'test text'\n\n# 代码生成\nregexmaster generate 'pattern' -l python\n```\n\n### 💡 设计思路\n\nRegexMaster 的设计理念是 **简单、高效、智能**：\n\n1. **简单** - 一条命令即可安装，无需复杂配置\n2. **高效** - 实时匹配，零延迟反馈\n3. **智能** - AI辅助解释，降低学习曲线\n\n### 📦 打包与部署\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/regexmaster.git\ncd regexmaster\n\n# 安装开发依赖\npip install -e \".[dev]\"\n\n# 运行测试\npytest tests/\n\n# 构建分发包\npip install build\npython -m build\n```\n\n### 🤝 贡献指南\n\n欢迎贡献代码、报告问题或提出建议！\n\n1. Fork 本仓库\n2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交更改 (`git commit -m 'feat: Add AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 创建 Pull Request\n\n### 📄 开源协议\n\n本项目采用 MIT 协议开源 - 详见 [LICENSE](LICENSE) 文件。\n\n---\n\n# 繁體中文\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🔍 RegexMaster\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003e終端正則表達式測試與調試利器\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003eAI智能解釋 · 可視化分析 · 性能優化 · 代碼生成\u003c/p\u003e\n\u003c/div\u003e\n\n## 🎉 項目介紹\n\n**RegexMaster** 是一款專為開發者打造的終端正則表達式工具，讓你無需離開終端即可高效測試、調試和優化正則表達式。\n\n### ✨ 核心特性\n\n- 🔍 **實時匹配測試** - 輸入即匹配，實時高亮顯示結果\n- 🤖 **AI智能解釋** - 將複雜正則轉換為自然語言說明\n- 📊 **可視化分析** - AST樹狀圖展示，直觀理解模式結構\n- ⚡ **性能優化** - 檢測災難性回溯，提供優化建議\n- 🛠️ **代碼生成** - 一鍵生成 Python/JS/Go/Java 代碼\n- 📚 **學習模式** - 交互式教程，從入門到精通\n- 🎨 **精美TUI** - 基於 Textual 的現代化終端界面\n\n### 🚀 快速開始\n\n#### 環境要求\n- Python 3.10 或更高版本\n- pip 包管理器\n\n#### 安裝\n\n```bash\n# 使用 pip 安裝\npip install regexmaster\n\n# 或使用簡短命令\npip install rxm\n```\n\n#### 運行\n\n```bash\n# 啟動交互式TUI\nregexmaster\n\n# 或使用簡寫\nrxm\n\n# 快速測試\nregexmaster test '\\d+' -t 'abc123def'\n\n# 解釋模式\nregexmaster explain '\\d{3}-\\d{3}-\\d{4}'\n\n# 生成代碼\nregexmaster generate '\\w+@[\\w.]+' -l python\n```\n\n### 📖 詳細使用指南\n\n#### 交互式模式\n\n啟動TUI後，你可以：\n1. 在 **Pattern** 輸入框輸入正則表達式\n2. 在 **Test Text** 區域輸入測試文本\n3. 實時查看匹配結果\n\n#### 快捷鍵\n\n| 快捷鍵 | 功能 |\n|--------|------|\n| `Ctrl+E` | 解釋當前模式 |\n| `Ctrl+G` | 生成代碼 |\n| `Ctrl+O` | 性能優化分析 |\n| `Ctrl+L` | 清空輸入 |\n| `Ctrl+Q` | 退出程序 |\n| `F1` | 幫助 |\n\n### 📦 打包與部署\n\n```bash\n# 克隆倉庫\ngit clone https://github.com/gitstq/regexmaster.git\ncd regexmaster\n\n# 安裝開發依賴\npip install -e \".[dev]\"\n\n# 運行測試\npytest tests/\n\n# 構建分發包\npip install build\npython -m build\n```\n\n### 🤝 貢獻指南\n\n歡迎貢獻代碼、報告問題或提出建議！\n\n### 📄 開源協議\n\n本項目採用 MIT 協議開源 - 詳見 [LICENSE](LICENSE) 文件。\n\n---\n\n# English\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🔍 RegexMaster\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eTerminal Regex Testing \u0026 Debugging Powerhouse\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003eAI-Powered Explanations · Visual Analysis · Performance Optimization · Code Generation\u003c/p\u003e\n\u003c/div\u003e\n\n## 🎉 Introduction\n\n**RegexMaster** is a terminal-based regex tool designed for developers who want to test, debug, and optimize regular expressions without leaving the command line.\n\n### ✨ Key Features\n\n- 🔍 **Real-time Matching** - Instant pattern matching with highlighted results\n- 🤖 **AI Explanations** - Convert complex patterns to plain English\n- 📊 **Visual Analysis** - AST tree visualization for pattern structure\n- ⚡ **Performance Optimization** - Detect catastrophic backtracking, get optimization tips\n- 🛠️ **Code Generation** - Generate Python/JS/Go/Java code instantly\n- 📚 **Learning Mode** - Interactive tutorials from beginner to expert\n- 🎨 **Beautiful TUI** - Modern terminal interface powered by Textual\n\n### 🚀 Quick Start\n\n#### Requirements\n- Python 3.10 or higher\n- pip package manager\n\n#### Installation\n\n```bash\n# Install with pip\npip install regexmaster\n\n# Or use the short name\npip install rxm\n```\n\n#### Usage\n\n```bash\n# Launch interactive TUI\nregexmaster\n\n# Or use the alias\nrxm\n\n# Quick test\nregexmaster test '\\d+' -t 'abc123def'\n\n# Explain mode\nregexmaster explain '\\d{3}-\\d{3}-\\d{4}'\n\n# Generate code\nregexmaster generate '\\w+@[\\w.]+' -l python\n```\n\n### 📖 Detailed Usage\n\n#### Interactive Mode\n\nAfter launching the TUI:\n1. Enter your regex pattern in the **Pattern** input\n2. Type test text in the **Test Text** area\n3. View real-time match results\n\n#### Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Ctrl+E` | Explain current pattern |\n| `Ctrl+G` | Generate code |\n| `Ctrl+O` | Performance analysis |\n| `Ctrl+L` | Clear inputs |\n| `Ctrl+Q` | Quit |\n| `F1` | Help |\n\n#### CLI Mode\n\n```bash\n# Test matching\nregexmaster test 'pattern' -t 'test text'\n\n# Explain pattern\nregexmaster explain 'pattern'\n\n# Performance analysis\nregexmaster optimize 'pattern' -t 'test text'\n\n# Generate code\nregexmaster generate 'pattern' -l python\n```\n\n### 💡 Design Philosophy\n\nRegexMaster is designed to be **Simple, Fast, and Smart**:\n\n1. **Simple** - One command to install, zero configuration\n2. **Fast** - Real-time matching with instant feedback\n3. **Smart** - AI-assisted explanations to reduce learning curve\n\n### 📦 Building \u0026 Deployment\n\n```bash\n# Clone the repository\ngit clone https://github.com/gitstq/regexmaster.git\ncd regexmaster\n\n# Install development dependencies\npip install -e \".[dev]\"\n\n# Run tests\npytest tests/\n\n# Build distribution\npip install build\npython -m build\n```\n\n### 🤝 Contributing\n\nContributions are welcome! Feel free to submit issues or pull requests.\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'feat: Add AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n### 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://github.com/gitstq\"\u003eSOLO Agent\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fregexmaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fregexmaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fregexmaster/lists"}