pcre2

Install command:
brew install pcre2

Perl compatible regular expressions library with a new API

https://www.pcre.org/

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/pcre2.json

Formula code: pcre2.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 10.49
head ⚡️ HEAD

Uses from macOS: bzip2

Binaries: pcre2-config, pcre2grep, pcre2test

GitHub Packages downloads:

Last 30 days1,845,459
Downloads77,631,659
Analytics install events (30 days)178,838
Downloads / install events (30 days)10.3×

Source: GitHub Packages, fetched 2026-11-15T00:52:15Z. Analytics dates: 2026-10-16 to 2026-11-15. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs178,828522,9632,313,440
Installs (--HEAD)102290
Installs on Request2,2068,45628,035
Installs on Request (--HEAD)61753
Build Errors450