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,645,400
Downloads78,805,761
Analytics install events (30 days)157,333
Downloads / install events (30 days)10.5×

Source: GitHub Packages, fetched 2026-12-06T00:54:27Z. Analytics dates: 2026-11-06 to 2026-12-06. 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
Installs157,327513,7492,276,788
Installs (--HEAD)62487
Installs on Request1,5517,48927,052
Installs on Request (--HEAD)01546
Build Errors343