Merge changes If45a9dc8,Ic373f38a am: fe92be8f97 am: 7c92007325 am: 6e12a01509

Original change: https://android-review.googlesource.com/c/platform/external/pcre/+/2346559

Change-Id: I5aa73444cfba87620ef40c7fad07741e4edcf52f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: a2b8a9653586dfce55036f2863e57c42525499f4
  1. cmake/
  2. doc/
  3. include/
  4. m4/
  5. maint/
  6. src/
  7. testdata/
  8. .gitignore
  9. 132html
  10. aclocal.m4
  11. Android.bp
  12. ar-lib
  13. AUTHORS
  14. autogen.sh
  15. ChangeLog
  16. CheckMan
  17. CleanTxt
  18. CMakeLists.txt
  19. compile
  20. config-cmake.h.in
  21. config.guess
  22. config.sub
  23. configure
  24. configure.ac
  25. COPYING
  26. depcomp
  27. Detrail
  28. HACKING
  29. index.md
  30. INSTALL
  31. install-sh
  32. libpcre2-16.pc.in
  33. libpcre2-32.pc.in
  34. libpcre2-8.pc.in
  35. libpcre2-posix.pc.in
  36. LICENCE
  37. ltmain.sh
  38. Makefile.am
  39. Makefile.in
  40. METADATA
  41. missing
  42. MODULE_LICENSE_BSD
  43. NEWS
  44. NON-AUTOTOOLS-BUILD
  45. NOTICE
  46. OWNERS
  47. pcre2-config.in
  48. pcre2_fuzzer.dict
  49. pcre2_fuzzer.options
  50. perltest.sh
  51. PrepareRelease
  52. README
  53. README.md
  54. RunGrepTest
  55. RunGrepTest.bat
  56. RunTest
  57. RunTest.bat
  58. test-driver
README.md

PCRE2 - Perl-Compatible Regular Expressions

The PCRE2 library is a set of C functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE2 has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API. The PCRE2 library is free, even for building proprietary software. It comes in three forms, for processing 8-bit, 16-bit, or 32-bit code units, in either literal or UTF encoding.

PCRE2 was first released in 2015 to replace the API in the original PCRE library, which is now obsolete and no longer maintained. As well as a more flexible API, the code of PCRE2 has been much improved since the fork.

Download

As well as downloading from the GitHub site, you can download PCRE2 or the older, unmaintained PCRE1 library from an unofficial mirror at SourceForge.

You can check out the PCRE2 source code via Git or Subversion:

git clone https://github.com/PhilipHazel/pcre2.git
svn co    https://github.com/PhilipHazel/pcre2.git

Contributed Ports

If you just need the command-line PCRE2 tools on Windows, precompiled binary versions are available at this Rexegg page.

A PCRE2 port for z/OS, a mainframe operating system which uses EBCDIC as its default character encoding, can be found at http://www.cbttape.org (File 939).

Documentation

You can read the PCRE2 documentation here.

Comparisons to Perl's regular expression semantics can be found in the community authored Wikipedia entry for PCRE.

There is a curated summary of changes for each PCRE release, copies of documentation from older releases, and other useful information from the third party authored RexEgg PCRE Documentation and Change Log page.

Contact

To report a problem with the PCRE2 library, or to make a feature request, please use the PCRE2 GitHub issues tracker. There is a mailing list for discussion of PCRE2 issues and development at pcre2-dev@googlegroups.com, which is where any announcements will be made. You can browse the list archives.