{"id":28915894,"url":"https://github.com/safe049/regen","last_synced_at":"2026-05-11T07:50:50.149Z","repository":{"id":300142708,"uuid":"1005316465","full_name":"safe049/regen","owner":"safe049","description":"A Regex Expression Generator written in C++","archived":false,"fork":false,"pushed_at":"2025-06-20T03:37:51.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T04:29:51.341Z","etag":null,"topics":["cli","cpp","generator","gplv3","linux","regex","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/safe049.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}},"created_at":"2025-06-20T03:27:11.000Z","updated_at":"2025-06-20T03:40:19.000Z","dependencies_parsed_at":"2025-06-20T04:40:06.982Z","dependency_job_id":null,"html_url":"https://github.com/safe049/regen","commit_stats":null,"previous_names":["safe049/regen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/safe049/regen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe049%2Fregen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe049%2Fregen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe049%2Fregen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe049%2Fregen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safe049","download_url":"https://codeload.github.com/safe049/regen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe049%2Fregen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261206111,"owners_count":23124838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","cpp","generator","gplv3","linux","regex","windows"],"created_at":"2025-06-21T23:06:37.885Z","updated_at":"2026-05-11T07:50:50.144Z","avatar_url":"https://github.com/safe049.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regen 📋\n\n![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)\n\n## 简介 / Introduction\n\nRegen 是一个命令行工具，用于快速生成正则表达式。它提供两种模式：\n- 直接参数模式：通过命令行参数快速生成\n- 向导模式：交互式构建复杂正则表达式\n\nRegen is a command-line tool for quickly generating regular expressions. It offers two modes:\n- Direct mode: Quick generation via command-line arguments\n- Wizard mode: Interactive building of complex regular expressions\n\n## 功能特性 / Features\n\n### 预设模式 / Preset Patterns\n- 电子邮件 / Email\n- URL\n- IP地址 / IP Address\n- 日期 / Date\n- 时间 / Time\n- 电话号码 / Phone Number\n- 十六进制颜色 / Hex Color\n- 信用卡号 / Credit Card\n\n### 自定义选项 / Customization Options\n- 整行匹配 / Whole line matching\n- 不区分大小写 / Case insensitive\n- 多行模式 / Multiline mode\n- Dot匹配所有字符 / Dot matches all\n- 输出解释 / Explanation output\n- 多种语言代码生成 / Multiple language code generation\n\n## 安装 / Installation\n\n### 从源码编译 / Build from source\n\n```bash\ngit clone https://github.com/safe049/regen.git\ncd regen\ng++ -std=c++11 regen.cpp -o regen\nsudo mv regen /usr/local/bin/\n```\n\n## 使用示例 / Usage Examples\n\n### 直接模式 / Direct Mode\n\n```bash\n# 使用预设模式 / Use preset pattern\nregen -p email\n\n# 自定义模式 / Custom pattern\nregen \"\\d+\" \"匹配一个或多个数字 / Match one or more digits\"\n\n# 输出解释 / With explanation\nregen -e -p ip\n\n# 输出为Python代码 / Output as Python code\nregen -f python -p date\n```\n\n### 向导模式 / Wizard Mode\n\n```bash\nregen --wizard\n```\n\n## 许可证 / License\n\nGNU General Public License v3.0\n\n## 贡献 / Contributing\n\n欢迎提交问题和拉取请求！\nIssues and pull requests are welcome!\n\n## 作者 / Author\n\nDysprosium \u003csafe049@163.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe049%2Fregen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafe049%2Fregen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe049%2Fregen/lists"}