Skip to content

pcre2v10.49

Updated

Regular Expression pattern matching using the same syntax and semantics as Perl 5.

#Usage

pcre2 provides CMake targets:

find_package(pcre2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE PCRE2::8BIT)
target_compile_definitions(main PRIVATE PCRE2_CODE_UNIT_WIDTH=8)

Choose the interface your application uses:
PCRE2::8BIT - 8-bit code units (including UTF-8)
PCRE2::16BIT - 16-bit code units (including UTF-16)
PCRE2::32BIT - 32-bit code units (including UTF-32)
PCRE2::POSIX - POSIX wrapper around the 8-bit library

For the native API, define PCRE2_CODE_UNIT_WIDTH to match the chosen library
before including <pcre2.h>, either in your source or as shown above.
The POSIX interface uses <pcre2posix.h> and needs no code-unit width definition.

pcre2 provides matching pkg-config modules:

libpcre2-8
libpcre2-16
libpcre2-32
libpcre2-posix

#License

BSD-3-Clause WITH PCRE2-exception

#Supported Platforms

All platforms supported.

#Features

Default feature: platform-default-features

#jit

Enable support for Just-In-Time compiling regex matchers

Platforms: !emscripten & !ios
  • ✅linux
  • ✅osx
  • ✅uwp
  • ✅windows
    Dependencies:

    No dependencies.

    Host Dependencies:

    No dependencies.

    #platform-default-featuresdefault

    Enable default features

    Dependencies:
    • pcre2

      Platforms: !emscripten & !ios
      Features: jit, platform-default-features

    No transitive dependencies.

    Host Dependencies:

    No dependencies.

    #Dependencies

    No dependencies.

    #Host Dependencies

    No transitive dependencies.

    #Host Tool For

    No ports use this.

    #Contributors

    • codicodi's avatarcodicodi
    • Alexander Karatarakis's avatarAlexander Karatarakis
    • Jacob Zhong's avatarJacob Zhong
    • LarryIII's avatarLarryIII
    • Tony Lin's avatarTony Lin
    • grdowns's avatargrdowns
    • pravic's avatarpravic
    • Simon Hausmann's avatarSimon Hausmann
    • Jack·Boos·Yu's avatarJack·Boos·Yu
    • alcroito's avataralcroito
    • Billy O'Neal's avatarBilly O'Neal
    • Wolfgang Stöggl's avatarWolfgang Stöggl
    • Kevin Lu's avatarKevin Lu
    • Matthias Kuhn's avatarMatthias Kuhn
    • Cameron Ward's avatarCameron Ward
    • autoantwort's avatarautoantwort
    • Lars Glud's avatarLars Glud
    • Kai Pastor's avatarKai Pastor
    • Thomas1664's avatarThomas1664
    • talregev's avatartalregev
    • Theodore Tsirpanis's avatarTheodore Tsirpanis
    • fwcd's avatarfwcd
    • LE GARREC Vincent's avatarLE GARREC Vincent
    • Lily Wang's avatarLily Wang
    • toge's avatartoge
    • SunBlack's avatarSunBlack
    • Nick Wilson's avatarNick Wilson

    #Changelog

    • d2f16d9PCRE2: make a few small portfile improvements (#54610)
    • f5d9f53PCRE2: fix sljit submodule to use correct git commit (#54564)
    • 74ce77f[pcre2] Update to 10.49 (#54168)
    • 06a7fdd[pcre2] Fix android-dynamic, cleanup (#52115)
    • 00d9442[pcre2] update to 10.47 (#47909)
    • 45261b1[pcre2] update to 10.46 (#47113)
    • 36e6a8b[pcre2] update to 10.45 (#44116)
    • 00abcfb[pcre2] Update to 10.43 (#38105)
    • 9037733[pcre2] Fix "There should be no absolute paths" (#37971)
    • ea6202d[pcre2] Disable JIT when targeting iOS (#37059)
    Show 28 earlier changes