🍺 BREW Explorer

← all formulae

pcre2

brew install pcre2 v10.47_1 BSD-3-Clause

Perl Compatible Regular Expressions (PCRE2) C library for pattern matching with modern API and advanced features.

Why you might care

Provides a more feature-rich and performant regex engine than POSIX regex for applications that need lookahead, named groups, Unicode support, and complex patterns. Used as a build dependency by many CLI tools and libraries (grep variants, text processors) that need sophisticated pattern matching beyond basic regex.

Categories

Alternatives

oniguruma boost-regex PCRE Oniguruma
178.2k
30-day installs · #13
595.6k
90-day · #12
2.5M
365-day · #9

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "oniguruma",
    "boost-regex",
    "PCRE",
    "Oniguruma"
  ],
  "build_dependencies": [],
  "categories": [
    "library",
    "regex"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Perl compatible regular expressions library with a new API",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:36+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "pcre2",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.pcre.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "PCRE - Perl Compatible Regular Expressions",
  "installs_30d": 178195,
  "installs_365d": 2501619,
  "installs_90d": 595637,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": "2026-06-20T23:42:08+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "pcre2",
  "oldnames": [],
  "one_liner": "Perl Compatible Regular Expressions (PCRE2) C library for pattern matching with modern API and advanced features.",
  "optional_dependencies": [],
  "rank_30d": 13,
  "rank_365d": 9,
  "rank_90d": 12,
  "raw_hash": "cd8ff8aa1c22a008",
  "recommended_dependencies": [],
  "revision": 1,
  "ruby_source_path": "Formula/p/pcre2.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "bzip2"
  ],
  "version_head": "HEAD",
  "version_stable": "10.47",
  "versioned_formulae": [],
  "why_use_this": "Provides a more feature-rich and performant regex engine than POSIX regex for applications that need lookahead, named groups, Unicode support, and complex patterns. Used as a build dependency by many CLI tools and libraries (grep variants, text processors) that need sophisticated pattern matching beyond basic regex."
}