{"id":16272127,"url":"https://github.com/syu-fu/regm","last_synced_at":"2026-04-26T12:31:28.432Z","repository":{"id":237234900,"uuid":"794092043","full_name":"Syu-fu/regm","owner":"Syu-fu","description":"An interactive command-line tool for matching regular expressions.","archived":false,"fork":false,"pushed_at":"2024-05-01T14:22:06.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T15:50:19.449Z","etag":null,"topics":["cli","deno","denoland","interactive","regex","regexp-match"],"latest_commit_sha":null,"homepage":"https://deno.land/x/regm","language":"TypeScript","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/Syu-fu.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}},"created_at":"2024-04-30T12:47:33.000Z","updated_at":"2024-09-08T04:40:33.000Z","dependencies_parsed_at":"2024-04-30T14:17:34.193Z","dependency_job_id":"6fd39c45-b5a8-4b49-b984-63be3777d83a","html_url":"https://github.com/Syu-fu/regm","commit_stats":null,"previous_names":["syu-fu/regm"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Syu-fu/regm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syu-fu%2Fregm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syu-fu%2Fregm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syu-fu%2Fregm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syu-fu%2Fregm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syu-fu","download_url":"https://codeload.github.com/Syu-fu/regm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syu-fu%2Fregm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","deno","denoland","interactive","regex","regexp-match"],"created_at":"2024-10-10T18:16:20.007Z","updated_at":"2026-04-26T12:31:28.415Z","avatar_url":"https://github.com/Syu-fu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regm\n\n[![ci](https://github.com/Syu-fu/regm/actions/workflows/test.yml/badge.svg)](https://github.com/Syu-fu/regm/actions/workflows/test.yml)\n[![build](https://github.com/Syu-fu/regm/actions/workflows/build.yml/badge.svg)](https://github.com/Syu-fu/regm/actions/workflows/build.yml)\n[![GitHub License](https://img.shields.io/github/license/Syu-fu/regm)](LICENSE)\n[![deno version](https://img.shields.io/badge/deno-%5E1.40.0-green?logo=deno)](https://deno.land)\n\n`regm` is an interactive command-line tool for matching regular expressions.  \nIt provides a simple interface for testing regular expressions against input text,\nsupporting various flavors of regular expressions such as ECMA, Basic (BRE), Extended (ERE), PCRE, Vim, and RE2.\n\n## Install\n\n```bash\n# Deno\n$ deno install --allow-env --allow-read --import-map https://deno.land/x/regm/import_map.json https://deno.land/x/regm/regm.ts --name regm --force\n\n# Homebrew\n$ brew install Syu-fu/tap/regm\n```\n\n## Example\n\n![regm.gif](https://private-user-images.githubusercontent.com/61235023/326812632-51347b16-4308-478d-991b-00893f2d9262.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ0ODE3MzEsIm5iZiI6MTcxNDQ4MTQzMSwicGF0aCI6Ii82MTIzNTAyMy8zMjY4MTI2MzItNTEzNDdiMTYtNDMwOC00NzhkLTk5MWItMDA4OTNmMmQ5MjYyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDMwVDEyNTAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0MmMxNmJjNWU2MzAwYTljZGUxN2U5ZjkxMjM0YTg5Nzg1NTAzZWM0ZjMzNDA2YjFiZTZhMDRjMjVmYWZkZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.se-IJ1hxUvhpB_eyRkAfTjFH7MpmGrD9dz0-HmQ0GHA)\n\n```bash\n$ echo -e \"apple\\nbanana\\norange\\npear\\ngrape\\nkiwi\" \u003e match.txt\n# stdout shows the input when the Enter key is pressed.\n$ regm -f match.txt | pbcopy\n```\n\n## Usage\n\n### Options\n\n| Option            | Description                             |\n| ----------------- | --------------------------------------- |\n| -h, --help        | Display help information.               |\n| -V, --version     | Display the version number.             |\n| -f, --file \u003cfile\u003e | Read input text from a file. (required) |\n\n### Flavor options\n\nChoose one of the following flavor options (defaults to ECMA flavor if not specified):\n\n| Option         | Description                                                                                                          |\n| -------------- | -------------------------------------------------------------------------------------------------------------------- |\n| -e, --ecma     | [ECMA](https://262.ecma-international.org/12.0/#sec-regexp-regular-expression-objects) flavor. (JavaScript, Java)    |\n| -b, --basic    | [Basic](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03) flavor (BRE).(grep)      |\n| -x, --extended | [Extended](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04) flavor (ERE). (egrep) |\n| -p, --pcre     | [PCRE](https://www.pcre.org/) flavor. (Perl, PHP)                                                                    |\n| -v, --vim      | [Vim](https://vimhelp.org/pattern.txt.html) flavor. (Vim, Neovim)                                                    |\n| -r, --re2      | [RE2](https://github.com/google/re2) flavor. (Go, Python)                                                            |\n\n### Completion\n\n#### Add .bashrc\n\n```bash\nsource \u003c(regm completions bash)\n```\n\n#### zsh\n\nAdd .zshrc\n\n```zsh\nsource \u003c(regm completions zsh)\n```\n\n#### fish\n\nAdd config.fish\n\n```fish\nsource (regm completions fish | psub)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyu-fu%2Fregm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyu-fu%2Fregm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyu-fu%2Fregm/lists"}