%general-entities; ]> pcre &pcre-version;
&pcre-url;
PCRE-&pcre-version; PCRE <para>The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&pcre-ch6-sbu;</seg> <seg>&pcre-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>安装 PCRE 准备安装 PCRE: ./configure --prefix=/usr \ --docdir=/usr/share/doc/pcre-&pcre-version; \ --enable-utf8 \ --enable-unicode-properties \ --enable-pcregrep-libz \ --enable-pcregrep-libbz2 The meaning of the configure options: --enable-utf8 This switch includes the code for handling UTF-8 character strings in the library. --enable-unicode-properties This switch enables Unicode properties support. --enable-pcregrep-lib* These switches enable the PCRE library to read files compressed with gzip and bzip2. 编译该软件包: make 运行以下命令以测试编译结果: make check 安装该软件包: make install The grep binary will be installed in /bin and will link against the PCRE library; as such, move the library to /lib: mv -v /usr/lib/libpcre.so.* /lib/ ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so PCRE 的内容 安装的程序 安装的库 安装的目录 pcregrep, pcretest, and pcre-config libpcre.{a,so}, libpcrecpp.{a,so} and libpcreposix.{a,so} /usr/share/doc/pcre-&pcre-version; 简要描述 pcregrep A grep that understands Perl compatible regular expressions. pcregrep pcretest Tests a Perl compatible regular expression pcretest pcre-config Used during the compilation process of programs linking to the PCRE libraries pcre-config libpcre Provides functions useful for working with regular expressions libpcre libpcrecpp Provides C++ wrapper functions for the libpcre library libpcrecpp libpcreposix Provides wrapper functions based on the POSIX regular expression API libpcreposix