macOS
brew install pcrelocal Homebrew formula metadata
sudo port install pcreMacPorts ports tree · devel/pcre/Portfile · 来源: api.github.com
安装
brew install pcrelocal Homebrew formula metadata
sudo port install pcreMacPorts ports tree · devel/pcre/Portfile · 来源: api.github.com
sudo apk add pcreAlpine Linux edge package indexes · pcre · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#pcrenixpkgs package indexes · pkgs/by-name/pc/pcre/package.nix · 来源: api.github.com
sudo pacman -S pcreArch Linux sync databases · pcre · 来源: geo.mirror.pkgbuild.com
sudo apt install pcregrepUbuntu 24.04 LTS package indexes · pcregrep · 来源: archive.ubuntu.com
scoop install main/pcregrepScoop official bucket manifest trees · bucket/pcregrep.json · 来源: api.github.com
概览
Perl compatible regular expressions library
历史
PCRE, now commonly called PCRE1, is Philip Hazel's C library implementing Perl-compatible regular-expression matching. The Homebrew pcre formula represents the legacy 8.x API rather than its actively maintained successor, PCRE2.
Philip Hazel wrote PCRE at the University of Cambridge as a C implementation of regular-expression matching broadly compatible with Perl syntax and semantics.
The original series expanded from an 8-bit library to optional 16-bit support in release 8.30 and 32-bit support in 8.32. A redesigned API appeared as PCRE2 10.00 in January 2015.
PCRE1 concluded with release 8.45. The official documentation now describes it as obsolete and unmaintained while retaining its manuals for existing applications.
PCRE became a widely packaged compatibility layer for Perl-style regular expressions in C and in software embedding a C regex engine. The supplied metadata records availability across Homebrew, Alpine, Arch, Nix, MacPorts, Scoop, and Ubuntu ecosystems.
The original API remains relevant for legacy consumers, but the official documentation marks PCRE1 end-of-life and advises new projects to use PCRE2.
Developers link libpcre, libpcre16, or libpcre32 to compile and match Perl-style patterns from C or through language bindings. The legacy distribution also offers a restricted POSIX wrapper and a C++ wrapper.
pcregrep applies PCRE matching from the command line, pcretest exercises patterns and library behavior, and pcre-config reports build and linkage settings.
PCRE has no documented per-user credentials or runtime configuration file; its feature set is principally selected at build time and queried programmatically or with pcre-config.
PCRE helped make Perl-like regex syntax available outside the Perl runtime through a small, embeddable C library. Package maintainers care about the distinction between the ABI-incompatible PCRE1 and PCRE2 families because migration requires source changes rather than a simple library replacement.
The package also supplies pcregrep, pcretest, and pcre-config, making it both a development dependency and a useful command-line regex toolkit.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pcre-config | cli | 全局可执行文件 | |
pcregrep | cli | 全局可执行文件 | |
pcretest | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:pcre |
|---|---|
| 版本 | 8.45 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pcre |
| 主页 | https://www.pcre.org/ |
| 上游文档 | https://www.pcre.org/ |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.bz2 |
| 最后更新 | 2026-09-10T23:22:41Z |
| Pulse | updated |
| macOS 提供的库 | bzip2 |
| 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 | pcre |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | yes |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
pcre
nix profile install nixpkgs#pcrelibpcre16 8.45-r4
PCRE with 16 bit character support
sudo apk add libpcre16libpcre32 8.45-r4
PCRE with 32 bit character support
sudo apk add libpcre32libpcrecpp 8.45-r4
C++ bindings for PCRE
sudo apk add libpcrecpppcre 8.45-r4
Perl-compatible regular expression library
sudo apk add pcrepcre-dev 8.45-r4
Perl-compatible regular expression library (development files)
sudo apk add pcre-devpcre-doc 8.45-r4
Perl-compatible regular expression library (documentation)
sudo apk add pcre-docpcre-static 8.45-r4
Perl-compatible regular expression library (static library)
sudo apk add pcre-staticpcre-tools 8.45-r4
Auxiliary utilities for PCRE
sudo apk add pcre-toolspcre 8.45-5
A deprecated library that implements Perl 5-style regular expressions
sudo pacman -S pcrepcre
sudo port install pcrepcregrep 2:8.39-15build1
grep utility that uses perl 5 compatible regexes.
sudo apt install pcregrepmain/pcregrep
scoop install main/pcregrep来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.