CINXE.COM
platform/external/pcre - Git at Google
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>platform/external/pcre - Git at Google</title><link rel="stylesheet" type="text/css" href="/+static/base.css"><link rel="stylesheet" type="text/css" href="/+static/doc.css"><!-- default customHeadTagPart --></head><body class="Site"><header class="Site-header"><div class="Header"><a class="Header-image" href="/"><img src="//www.gstatic.com/images/branding/lockups/2x/lockup_git_color_108x24dp.png" width="108" height="24" alt="Google Git"></a><div class="Header-menu"> <a class="Header-menuItem" href="https://accounts.google.com/AccountChooser?faa=1&service=gerritcodereview&continue=https://android.googlesource.com/login/platform/external/pcre/">Sign in</a> </div></div></header><div class="Site-content"><div class="Container "><div class="Breadcrumbs"><a class="Breadcrumbs-crumb" href="/?format=HTML">android</a> / <a class="Breadcrumbs-crumb" href="/platform/">platform</a> / <a class="Breadcrumbs-crumb" href="/platform/external/">external</a> / <span class="Breadcrumbs-crumb">pcre</span></div><div class="CloneRepo"><div class="CloneRepo-title">Clone this repo:</div><input id="clone-repo-input" type="text" class="u-monospace CloneRepo-command" readonly="readonly" value="git clone https://android.googlesource.com/platform/external/pcre"></div><div class="RepoShortlog"><div class="RepoShortlog-refs"><div class="RefList RefList--responsive"><h3 class="RefList-title">Branches</h3><ul class="RefList-items"><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/main">main</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_ads_341826060">aml_ads_341826060</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_ads_341826300">aml_ads_341826300</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_art_341810020">aml_art_341810020</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_ase_341810000">aml_ase_341810000</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_cbr_341810000">aml_cbr_341810000</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_con_341810060">aml_con_341810060</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_doc_341813030">aml_doc_341813030</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_ext_341816020">aml_ext_341816020</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/heads/aml_hef_341811030">aml_hef_341811030</a></li></ul></div><a href="/platform/external/pcre/+refs">More...</a><div class="RefList RefList--responsive"><h3 class="RefList-title">Tags</h3><ul class="RefList-items"><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-automotiveos-14.0.0_lts3">android-automotiveos-14.0.0_lts3</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-14.0.0_r75">android-14.0.0_r75</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-cts-12.0_r14">android-cts-12.0_r14</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-cts-12.1_r12">android-cts-12.1_r12</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-cts-13.0_r10">android-cts-13.0_r10</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-cts-15.0_r2">android-cts-15.0_r2</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-cts-14.0_r6">android-cts-14.0_r6</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-vts-12.0_r14">android-vts-12.0_r14</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-vts-12.1_r12">android-vts-12.1_r12</a></li><li class="RefList-item"><a href="/platform/external/pcre/+/refs/tags/android-vts-13.0_r10">android-vts-13.0_r10</a></li></ul></div><a href="/platform/external/pcre/+refs">More...</a></div><div class="RepoShortlog-log"><ol class="CommitLog"><li class="CommitLog-item CommitLog-item--androidOneline"><a class="u-sha1 u-monospace CommitLog-sha1" href="/platform/external/pcre/+/22dc650d8ae982c6770746019a6f94af92b0f024">22dc650</a> <a href="/platform/external/pcre/+/22dc650d8ae982c6770746019a6f94af92b0f024">Merge "Upgrade libpcre2 to pcre2-10.44" into main am: 1d42c538e2 am: bdd7311119</a> <span class="CommitLog-author" title="sadafebrahimi@google.com">by Sadaf Ebrahimi</span> <span class="CommitLog-time" title="Mon Jun 10 15:48:49 2024 +0000">路 6 months ago</span> <a class="CommitLog-branchLabel" href="/platform/external/pcre/+/refs/heads/android15-tests-dev">android15-tests-dev</a> <a class="CommitLog-branchLabel" href="/platform/external/pcre/+/refs/heads/main">main</a> <a class="CommitLog-branchLabel" href="/platform/external/pcre/+/refs/heads/master">master</a></li><li class="CommitLog-item CommitLog-item--androidOneline"><a class="u-sha1 u-monospace CommitLog-sha1" href="/platform/external/pcre/+/bdd73111194a4b7a45349cbf62e3d7d9ebc716b1">bdd7311</a> <a href="/platform/external/pcre/+/bdd73111194a4b7a45349cbf62e3d7d9ebc716b1">Merge "Upgrade libpcre2 to pcre2-10.44" into main am: 1d42c538e2</a> <span class="CommitLog-author" title="sadafebrahimi@google.com">by Sadaf Ebrahimi</span> <span class="CommitLog-time" title="Mon Jun 10 15:27:38 2024 +0000">路 6 months ago</span></li><li class="CommitLog-item CommitLog-item--androidOneline"><a class="u-sha1 u-monospace CommitLog-sha1" href="/platform/external/pcre/+/1d42c538e222634e4b50b58b483f8a6a5a57d350">1d42c53</a> <a href="/platform/external/pcre/+/1d42c538e222634e4b50b58b483f8a6a5a57d350">Merge "Upgrade libpcre2 to pcre2-10.44" into main</a> <span class="CommitLog-author" title="sadafebrahimi@google.com">by Sadaf Ebrahimi</span> <span class="CommitLog-time" title="Mon Jun 10 15:08:02 2024 +0000">路 6 months ago</span></li><li class="CommitLog-item CommitLog-item--androidOneline"><a class="u-sha1 u-monospace CommitLog-sha1" href="/platform/external/pcre/+/e3f5db5938f36d7f353a95ee0d69bcb37a82dbc8">e3f5db5</a> <a href="/platform/external/pcre/+/e3f5db5938f36d7f353a95ee0d69bcb37a82dbc8">Upgrade libpcre2 to pcre2-10.44</a> <span class="CommitLog-author" title="sadafebrahimi@google.com">by Sadaf Ebrahimi</span> <span class="CommitLog-time" title="Fri Jun 07 15:44:41 2024 +0000">路 6 months ago</span></li><li class="CommitLog-item CommitLog-item--androidOneline"><a class="u-sha1 u-monospace CommitLog-sha1" href="/platform/external/pcre/+/6ae58beca071f13ccfed31d03b3f479ab520639b">6ae58be</a> <a href="/platform/external/pcre/+/6ae58beca071f13ccfed31d03b3f479ab520639b">Final file tidies for 10.44</a> <span class="CommitLog-author" title="Philip.Hazel@gmail.com">by Philip Hazel</span> <span class="CommitLog-time" title="Fri Jun 07 15:09:00 2024 +0100">路 6 months ago</span></li></ol><nav class="LogNav"><a class="LogNav-next" href="/platform/external/pcre/+log">More »</a></nav><div class="doc RepoIndexDoc"><h1><a class="h" name="PCRE2-Perl_Compatible-Regular-Expressions" href="#PCRE2-Perl_Compatible-Regular-Expressions"><span></span></a><a class="h" name="pcre2-perl_compatible-regular-expressions" href="#pcre2-perl_compatible-regular-expressions"><span></span></a>PCRE2 - Perl-Compatible Regular Expressions</h1><p>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.</p><p>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.</p><h2><a class="h" name="Download" href="#Download"><span></span></a><a class="h" name="download" href="#download"><span></span></a>Download</h2><p>As well as downloading from the <a href="https://github.com/PCRE2Project/pcre2">GitHub site</a>, you can download PCRE2 or the older, unmaintained PCRE1 library from an <a href="https://sourceforge.net/projects/pcre/files/"><em>unofficial</em> mirror</a> at SourceForge.</p><p>You can check out the PCRE2 source code via Git or Subversion:</p><pre class="code">git clone https://github.com/PCRE2Project/pcre2.git svn co https://github.com/PCRE2Project/pcre2.git </pre><h2><a class="h" name="Contributed-Ports" href="#Contributed-Ports"><span></span></a><a class="h" name="contributed-ports" href="#contributed-ports"><span></span></a>Contributed Ports</h2><p>If you just need the command-line PCRE2 tools on Windows, precompiled binary versions are available at this <a href="http://www.rexegg.com/pcregrep-pcretest.html">Rexegg page</a>.</p><p>A PCRE2 port for z/OS, a mainframe operating system which uses EBCDIC as its default character encoding, can be found at <a href="http://www.cbttape.org/">http://www.cbttape.org</a> (File 939).</p><h2><a class="h" name="Documentation" href="#Documentation"><span></span></a><a class="h" name="documentation" href="#documentation"><span></span></a>Documentation</h2><p>You can read the PCRE2 documentation <a href="https://PCRE2Project.github.io/pcre2/doc/html/index.html">here</a>.</p><p>Comparisons to Perl's regular expression semantics can be found in the community authored Wikipedia entry for PCRE.</p><p>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 <a href="http://www.rexegg.com/pcre-documentation.html">RexEgg PCRE Documentation and Change Log page</a>.</p><h2><a class="h" name="Contact" href="#Contact"><span></span></a><a class="h" name="contact" href="#contact"><span></span></a>Contact</h2><p>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 <a href="mailto:pcre2-dev@googlegroups.com">pcre2-dev@googlegroups.com</a>, which is where any announcements will be made. You can browse the <a href="https://groups.google.com/g/pcre2-dev">list archives</a>.</p></div></div></div></div> <!-- Container --></div> <!-- Site-content --><footer class="Site-footer"><div class="Footer"><span class="Footer-poweredBy">Powered by <a href="https://gerrit.googlesource.com/gitiles/">Gitiles</a>| <a href="https://policies.google.com/privacy">Privacy</a>| <a href="https://policies.google.com/terms">Terms</a></span><span class="Footer-formats"><a class="u-monospace Footer-formatsItem" href="?format=TEXT">txt</a> <a class="u-monospace Footer-formatsItem" href="?format=JSON">json</a></span></div></footer></body></html><script nonce="GkVL3fbzsRtoHeTdI8olBQ">{let f = document.getElementById("clone-repo-input"); f.onclick = () => {f.focus(); if (f.selectionStart === f.selectionEnd) {f.select();}};}</script>