Software library for interpreting regular expressions
Perl Compatible Regular Expressions
Original author(s)
Philip Hazel
Stable release(s)
PCRE1
8.45 / June 15, 2021; 2 years ago (2021-06-15)[1]
PCRE2
10.43 / February 16, 2024; 2 months ago (2024-02-16)[2]
Repository
github.com/PCRE2Project/pcre2
Written in
C
Operating system
Cross-platform
Type
Pattern matching library
License
BSD
Website
pcre.org
Perl Compatible Regular Expressions (PCRE) is a library written in C, which implements a regular expression engine, inspired by the capabilities of the Perl programming language. Philip Hazel started writing PCRE in summer 1997.[3] PCRE's syntax is much more powerful and flexible than either of the POSIX regular expression flavors (BRE, ERE)[4] and than that of many other regular-expression libraries.
While PCRE originally aimed at feature-equivalence with Perl, the two implementations are not fully equivalent. During the PCRE 7.x and Perl 5.9.x phase, the two projects coordinated development, with features being ported between them in both directions.[5]
In 2015, a fork of PCRE was released with a revised programming interface (API). The original software, now called PCRE1 (the 1.xx–8.xx series), has had bugs mended, but no further development. As of 2020[update], it is considered obsolete, and the current 8.45 release is likely to be the last. The new PCRE2 code (the 10.xx series) has had a number of extensions and coding improvements and is where development takes place.
A number of prominent open-source programs, such as the Apache and Nginx HTTP servers, and the PHP and R scripting languages, incorporate the PCRE library; proprietary software can do likewise, as the library is BSD-licensed. As of Perl 5.10, PCRE is also available as a replacement for Perl's default regular-expression engine through the re::engine::PCRE module.
The library can be built on Unix, Windows, and several other environments. PCRE2 is distributed with a POSIX C wrapper,[Note 1] several test programs, and the utility program pcre2grep that is built in tandem with the library.
^Cite error: The named reference PCRE1 was invoked but never defined (see the help page).
^Cite error: The named reference PCRE2 was invoked but never defined (see the help page).
^Cite error: The named reference 073dda77f8b5f8fd09647bddbdfd70bf was invoked but never defined (see the help page).
^Cite error: The named reference e4ac0ff70c49a9478fa2d8c44bf2b644 was invoked but never defined (see the help page).
^Cite error: The named reference 48c79c744a1d99fc5e30e1e948afbd20 was invoked but never defined (see the help page).
Cite error: There are <ref group=Note> tags on this page, but the references will not show without a {{reflist|group=Note}} template (see the help page).
and 23 Related for: Perl Compatible Regular Expressions information
in 1997, Philip Hazel developed PCRE (PerlCompatibleRegularExpressions), which attempts to closely mimic Perl's regex functionality and is used by many...
punctuation – Marks that identify the end of some text The PerlCompatibleRegularExpressions library implements the U flag, which reverses behavior of...
character, and C is in {0,1,2,...,9,X}; or by a PerlCompatibleRegularExpressions (PCRE) regularexpression: ^[0-9]{4}-[0-9]{3}[0-9X]$. For example, the...
International Association PCM—Pulse-Code Modulation PCRE—PerlCompatibleRegularExpressions PD—Public Domain PDA—Personal Digital Assistant PDF—Portable...
object BSON array JavaScript code MD5 binary data Regularexpression (Perlcompatibleregularexpressions ("PCRE") version 8.41 with UTF-8 support) An important...
languages and applications are now adopting PerlCompatibleRegularExpressions over POSIX regularexpressions, such as PHP, Ruby, Java, Microsoft's .NET...
block, and all statements are also expressions which can be used in larger expressions themselves.[citation needed] Perl 5 added features that support complex...
boundaries and achieves 98.5% accuracy. Examples of use of Perlcompatibleregularexpressions ("PCRE") ((?<=[a-z0-9][.?!])|(?<=[a-z0-9][.?!]\"))(\s|\r\n)(...
multi-file text searching capabilities including support for Perl-compatibleregularexpressions. BBEdit allows previewing and built-in validation of HTML...
regularexpression library written by Henry Spencer with a new library he developed called PCRE (PerlCompatibleRegularExpressions). Perlregular expressions...
Pattern calculus Pattern recognition for fuzzy patterns PCRE PerlCompatibleRegularExpressions, a common modern implementation of string pattern matching...
code folding, file type conversions, project management, PerlCompatibleRegularExpressions for search-and-replace, a column-edit mode, remote editing...
BSR may refer to: Backslash-R, a class of options in PerlCompatibleRegularExpressions Basrah International Airport, IATA code Vasai Road railway station...
2015. Retrieved 15 June 2015. "Example of an ABAP program with many expressions". Archived from the original on 2015-06-19. Retrieved 2015-06-19. "Classes"...
syntax, including backslash escape sequences String functions PerlCompatibleRegularExpressions (PCRE) On GitHub, there are 7,813,206 uses of strlcpy, versus...
applicable). For instance, ([ab]+)\1 matches "abab" but not "abaab". "PerlRegularExpression Syntax - 1.47.0". "User's Guide - 1.47.0". FREJ have no repetitive...
Perl is an open-source programming language whose first version, 1.0, was released in 1987. The following table contains the Perl 5 version history, showing...
Super-sed is an extended version of sed that includes regularexpressionscompatible with Perl. Another variant of sed is minised, originally reverse-engineered...
system and by human readers). The Python language has many similarities to Perl, C, and Java. However, there are some definite differences between the languages...