What is pcre?

藏色散人
Release: 2023-04-06 13:02:02
Original
6361 people have browsed it

PCRE (Perl Compatible Regular Expressions Chinese meaning: perl language compatible regular expressions) is a regular expression function library written in C language, written by Philip Hazel.

What is pcre?

#PCRE is a lightweight function library, much smaller than regular expression libraries such as Boost. PCRE is very easy to use and very powerful. Its performance exceeds the POSIX regular expression library and some classic regular expression libraries. A comparison between

and the Boost regular expression library shows that the performance of the two sides is almost the same. PCRE is faster when matching simple strings, and Boost wins when matching longer strings---but the gap between the two is very large. Small, considering the size and ease of use of PCRE, we can think that PCRE is more worthy of consideration.

PCRE is widely used in many open source software. The most famous ones are the Apache HTTP server, PHP script language, and R script language. In addition, as you can see from its name, PCRE is also a perl language. The default regular library.

PCRE is implemented in C language, and its C implementation version is PCRE.

The latest version of PCRE is 8.33, which can be downloaded from its official website. See the extended reading section for the official website address.

The above is the detailed content of What is pcre?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template