macOS
brew install grexlocal Homebrew formula metadata
sudo port install grexMacPorts ports tree · textproc/grex/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de grex pour les workflows d'agents IA.
installation
brew install grexlocal Homebrew formula metadata
sudo port install grexMacPorts ports tree · textproc/grex/Portfile · Source: api.github.com
nix profile install nixpkgs#grexnixpkgs package indexes · pkgs/by-name/gr/grex/package.nix · Source: api.github.com
sudo pacman -S grexArch Linux sync databases · grex · Source: geo.mirror.pkgbuild.com
sudo zypper install grexopenSUSE Tumbleweed package metadata · grex · Source: download.opensuse.org
scoop install main/grexScoop official bucket manifest trees · bucket/grex.json · Source: api.github.com
aperçu
Command-line tool for generating regular expressions
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
grex | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/pemistahl/grex
métadonnées d'installation
| Clé du paquet | brew:grex |
|---|---|
| Version | 1.4.6 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/grex |
| Page d'accueil | https://pemistahl.github.io/grex-js/ |
| Dépôt | https://github.com/pemistahl/grex |
| Docs amont | https://github.com/pemistahl/grex#readme |
| Licence | Apache-2.0 |
| Archive source | https://github.com/pemistahl/grex/archive/refs/tags/v1.4.6.tar.gz |
| Dernière mise à jour | 2026-06-15T10:20:17-04:00 |
| Pulse | updated |
| Dépendances de compilation | rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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/grexpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.