标签:
PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括perl兼容的正则表达式库。这些在执行正则表达式模式匹配时用与Perl 5同样的语法和语义是很有用的,也可以来解决C语言中使用正则表达式的问题。
PCRE下载地址:https://sourceforge.net/projects/pcre/files/pcre/
重新编译安装pcre:
1、下载pcre-8.38.tar.gz
2、解压
# tar zxvf pcre-8.38.tar.gz
# cd pcre-8.38
3、编译安装(指定:--enable-utf8 --enable-unicode-properties )
# ./configure --enable-utf8 --enable-unicode-properties
# make
# make install
当安装好pcre后,利用pcretest命令来打印pcre的安装情况,一般输出如下:
# pcretest -C PCRE version 8.38 2015-11-23 Compiled with 8-bit support UTF-8 support Unicode properties support No just-in-time compiler support Newline sequence is LF \R matches all Unicode newlines Internal link size = 2 POSIX malloc threshold = 10 Parentheses nest limit = 250 Default match limit = 10000000 Default recursion depth limit = 10000000 Match recursion uses stack
参考:http://www.cnblogs.com/pcat/p/5520317.html
标签:
原文地址:http://www.cnblogs.com/hjqjk/p/5552890.html