macOS
brew install grexlocal Homebrew formula metadata
sudo port install grexMacPorts ports tree · textproc/grex/Portfile · ソース: api.github.com
brew
grex のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install grexlocal Homebrew formula metadata
sudo port install grexMacPorts ports tree · textproc/grex/Portfile · ソース: api.github.com
nix profile install nixpkgs#grexnixpkgs package indexes · pkgs/by-name/gr/grex/package.nix · ソース: api.github.com
sudo pacman -S grexArch Linux sync databases · grex · ソース: geo.mirror.pkgbuild.com
sudo zypper install grexopenSUSE Tumbleweed package metadata · grex · ソース: download.opensuse.org
scoop install main/grexScoop official bucket manifest trees · bucket/grex.json · ソース: api.github.com
概要
Command-line tool for generating regular expressions
履歴
grex is a Rust command-line tool and library that generates regular expressions from user-provided test cases. It belongs to the developer-tooling tradition around regex synthesis: not replacing regex knowledge, but giving users a correct starting expression that can be inspected and refined.
The README states that grex began as a Rust port of Devon Govett's JavaScript regexgen project after regexgen development had apparently ceased. Peter M. Stahl's project kept the regex-generation idea but used Rust's strengths for command-line tooling and expanded the feature set beyond the original port.
Official GitHub releases show public versioned releases starting with v0.1.0 on 2019-10-06, followed by v1.0.0 on 2020-02-02. Later releases added and refined library, CLI, Unicode, packaging, and binding surfaces, while the README presents grex as both a command-line executable and a Rust crate with Python bindings.
grex reached package-manager users through the Rust ecosystem first, with crates.io as the upstream registry path, and through binary/package managers such as Homebrew, MacPorts, Scoop, Chocolatey, Huber, Nix, Arch, and openSUSE as reflected by the README and batch package facts. Its packaging surface is broad because it is a single CLI binary but also a reusable library.
Users pass examples directly on the command line, from a file, or through a Unix pipeline. By default grex generates a specific expression that matches the supplied test cases; flags can generalize output by converting digits, whitespace, word characters, repeated substrings, anchors, groups, escaping, case sensitivity, verbosity, and colorized display.
The README cautions that generated expressions still need human understanding. That caveat is part of the tool's identity: grex is best used to bootstrap or audit a regex, not to remove the need to understand the target language and engine.
grex is package-nerd significant because it packages an algorithmic helper for one of the most common developer annoyances: turning examples into a regular expression. It is also a Rust CLI case study, distributed as source through cargo and as prebuilt binaries or package-manager formulas for users who do not want a Rust toolchain.
Its relationship to regexgen also makes it a small example of ecosystem migration: a JavaScript idea revived as a Rust CLI and library, then exposed through additional language bindings.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
grex | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/pemistahl/grex
インストールメタデータ
| パッケージキー | brew:grex |
|---|---|
| バージョン | 1.4.6 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/grex |
| ホームページ | https://pemistahl.github.io/grex-js/ |
| リポジトリ | https://github.com/pemistahl/grex |
| 上流ドキュメント | https://github.com/pemistahl/grex#readme |
| ライセンス | Apache-2.0 |
| ソースアーカイブ | https://github.com/pemistahl/grex/archive/refs/tags/v1.4.6.tar.gz |
| 最終更新 | 2026-06-15T10:20:17-04:00 |
| Pulse | updated |
| ビルド依存関係 | rust |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | grex |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
grex
nix profile install nixpkgs#grexgrex 1.4.6-2
A command-line tool for generating regular expressions from user-provided input strings
https://github.com/pemistahl/grex
sudo pacman -S grexgrex 1.4.6-1.2
CLI regex generator
https://github.com/pemistahl/grex
sudo zypper install grexgrex
sudo port install grexmain/grex
scoop install main/grexソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.