`

script perl / pcre / Perl Compatible Regular Expressions

阅读更多

正则表达式库 PCRE 8.32 

http://www.pcre.org

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.zip

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz

http://www.oschina.net/p/pcre

pcre (Perl Compatible Regular Expressions) 包括 perl 兼容的正规表达式库.

这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的.

如: 安装web server nginx 时需要用到pcre类库

 

Eclipse Regular Expression Tester

这是一款eclipse环境下的一个正则表达式的测试插件。

在线安装URL:http://brosinski.com/regex/update

 

wiztools.org Regular Expression Tester / re-test-0.4.0.jar

http://www.oschina.net/p/wiztools

http://wiztools.googlecode.com/files/re-test-0.4.0.jar

这是一个用Java开发的,用来测试正则表达式的工具。

 

Regex Tester

Regex Tester 用 C# 编写的用来测试正则表达式的工具。

正则表达式测试工具.rar

http://www.oschina.net/action/file/download?id=187&fn=11bcbbfeaeb020ee9caea1d45db8c3d9ad456dec

首先你确保已经安装了.Net Framework 2.0。这是个绿色软件,下载完 后打开压缩包,直接运行RegexTester.exe就可以了。

 
 
regexkitlite

http://www.oschina.net/p/regexkitlite

RegexKitLite 是一个轻量级的 Objective-C 的正则表达式库,支持 Mac OS X 和 iOS,使用 ICU 库开发。

iPhone 上使用 RegexKitLite 的示例代码:

// finds phone number in format nnn-nnn-nnnn NSRange r;
NSString *regEx = @"{3}-[0-9]{3}-[0-9]{4}";
r = [textView.text rangeOfString:regEx options:NSRegularExpressionSearch];
if (r.location != NSNotFound) {
    NSLog(@"Phone number is %@", [textView.text substringWithRange:r]);
}
else {
    NSLog(@"Not found.");
}


自由软件正则表达式引擎的对比

http://www.oschina.net/question/12_28651

Shawn the R0ck 写道 "正则引擎sljit的作者受到了John Maddock之前对各种正则表达式引擎性能的测评的影响,他把自己的正则引擎和其他一些流行的自由软件正则引擎进行了性能对比,其中包括著名的PCRE(著名的IDS项目Snort就是使用的这个引擎),专注于并行化的tre和Google在2010年发布的re2。

sljit正则引擎不兼容POSIX和PERL,而是在设计的各个方面跟随了Ken Thompson的脚步,基于DFA(确定有限状态机)和JIT编译来对模式匹配进行加速。
从最终的测评结果来看:
- PCRE对输入的初始字符的表达式非常的快
- TREE则使用了并行的匹配算法,在复杂的正则表达式上有优势
- RE2的性能超乎想象的高,而且只使用了0.5MB的内存作为空间换时间的开销
- SLJIT的速度也不错,而且没有任何空间换时间的开销(这是因为目前还没有实现状态捕捉)。"
原文出处:http://opensource.solidot.org/article.pl?sid=11/09/29/0237240

 

 

http://www.oschina.net/p/regex+tester

Regex Tester 用 C# 编写的用来测试正则表达式的工具。

 

 

 

http://dl.iteye.com/topics/download/da69f3b7-4a13-3ceb-aef3-8d8430879719

[root@Loadrunner19 pcre-8.02]# ls -ltr /opt/soft/download/pcre-8.02
total 2940
-rwxr-xr-x 1 1169 1169   2941 Mar  8  2007 CleanTxt
-rwxr-xr-x 1 1169 1169    643 Mar  9  2007 Detrail
-rw-r--r-- 1 1169 1169     95 Mar 29  2007 COPYING
-rw-r--r-- 1 1169 1169   3594 Sep 11  2007 pcre_stringpiece_unittest.cc
-rw-r--r-- 1 1169 1169   1858 Sep 11  2007 pcre_stringpiece.cc
-rw-r--r-- 1 1169 1169   5532 Sep 11  2007 pcre_scanner.cc
-rw-r--r-- 1 1169 1169   7850 Sep 11  2007 pcre_chartables.c.dist
-rw-r--r-- 1 1169 1169   6265 Sep 19  2007 pcre_stringpiece.h.in
-rw-r--r-- 1 1169 1169   5196 Sep 19  2007 pcre_scanner_unittest.cc
-rw-r--r-- 1 1169 1169   6865 Nov 13  2007 pcrecpparg.h.in
-rw-r--r-- 1 1169 1169   1068 Jan 21  2008 config-cmake.h.in
-rw-r--r-- 1 1169 1169   5518 Jan 21  2008 pcre_maketables.c
-rw-r--r-- 1 1169 1169   6772 Jan 21  2008 dftables.c
-rw-r--r-- 1 1169 1169   6600 Jan 21  2008 pcre_scanner.h
-rw-r--r-- 1 1169 1169   3973 Jul  9  2008 pcre_version.c
-rw-r--r-- 1 1169 1169   3384 Jul  9  2008 pcre_refcount.c
-rw-r--r-- 1 1169 1169  15560 Jul  9  2008 pcre_get.c
-rw-r--r-- 1 1169 1169   2871 Aug 24  2008 pcrecpp_internal.h
-rw-r--r-- 1 1169 1169   3200 Aug 26  2008 pcre_ord2utf8.c
-rw-r--r-- 1 1169 1169   2229 Aug 28  2008 makevp.bat
-rw-r--r-- 1 1169 1169    318 Sep  5  2008 makevp_c.txt
-rw-r--r-- 1 1169 1169    561 Sep  5  2008 makevp_l.txt
-rw-r--r-- 1 1169 1169   3694 Feb 28  2009 pcre_config.c
-rw-r--r-- 1 1169 1169   4636 Mar  9  2009 pcre_xclass.c
-rw-r--r-- 1 1169 1169   3917 Mar 16  2009 pcre_info.c
-rw-r--r-- 1 1169 1169   5740 Mar 29  2009 pcre_newline.c
-rw-r--r-- 1 1169 1169   5553 Mar 29  2009 pcre_valid_utf8.c
-rw-r--r-- 1 1169 1169    288 Sep  2  2009 libpcrecpp.pc.in
-rw-r--r-- 1 1169 1169    297 Sep  2  2009 libpcre.pc.in
-rw-r--r-- 1 1169 1169    330 Sep  2  2009 libpcreposix.pc.in
-rw-r--r-- 1 1169 1169   5376 Sep  2  2009 pcreposix.h
-rwxr-xr-x 1 1169 1169   6611 Sep 19  2009 PrepareRelease
-rw-r--r-- 1 1169 1169  18258 Oct  4  2009 HACKING
-rwxr-xr-x 1 1169 1169  14687 Oct  5  2009 RunGrepTest
-rw-r--r-- 1 1169 1169   5559 Oct  5  2009 pcre_try_flipped.c
-rw-r--r-- 1 1169 1169  69774 Oct  5  2009 pcregrep.c
-rw-r--r-- 1 1169 1169   5566 Oct  5  2009 pcre_fullinfo.c
-rwxr-xr-x 1 1169 1169   6961 Oct  5  2009 132html
-rw-r--r-- 1 1169 1169   2142 Oct 19  2009 RunTest.bat
-rw-r--r-- 1 1169 1169  26529 Jan  3  2010 pcrecpp.h
-rw-r--r-- 1 1169 1169  39115 Jan  3  2010 pcrecpp_unittest.cc
-rw-r--r-- 1 1169 1169  10431 Jan  4  2010 Makefile.am
-rw-r--r-- 1 1169 1169  32523 Jan  6  2010 pcrecpp.cc
-rw-r--r-- 1 1169 1169  27444 Jan  6  2010 pcre_study.c
-rw-r--r-- 1 1169 1169  12655 Jan  6  2010 pcredemo.c
-rwxr-xr-x 1 1169 1169   5206 Jan 11  2010 perltest.pl
-rw-r--r-- 1 1169 1169    403 Jan 19  2010 AUTHORS
-rw-r--r-- 1 1169 1169   2496 Jan 20  2010 LICENCE
-rw-r--r-- 1 1169 1169  36246 Jan 20  2010 README
-rw-r--r-- 1 1169 1169  20391 Jan 20  2010 NON-UNIX-USE
-rw-r--r-- 1 1169 1169 157405 Mar  2  2010 pcre_ucd.c
-rw-r--r-- 1 1169 1169   3387 Mar  2  2010 ucp.h
-rw-r--r-- 1 1169 1169   1568 Mar  2  2010 pcre-config.in
-rw-r--r-- 1 1169 1169  26071 Mar  2  2010 pcregexp.pas
-rw-r--r-- 1 1169 1169  19742 Mar  2  2010 CMakeLists.txt
-rw-r--r-- 1 1169 1169  12913 Mar  3  2010 pcre.h.in
-rw-r--r-- 1 1169 1169  15741 Mar  4  2010 pcre_printint.src
-rw-r--r-- 1 1169 1169 171447 Mar  7  2010 pcre_exec.c
-rwxr-xr-x 1 1169 1169   8383 Mar 10  2010 RunTest
-rw-r--r-- 1 1169 1169  74179 Mar 11  2010 pcretest.c
-rw-r--r-- 1 1169 1169  14456 Mar 11  2010 pcreposix.c
-rw-r--r-- 1 1169 1169  74932 Mar 11  2010 pcre_internal.h
-rw-r--r-- 1 1169 1169 107277 Mar 11  2010 pcre_dfa_exec.c
-rw-r--r-- 1 1169 1169 223234 Mar 11  2010 pcre_compile.c
-rw-r--r-- 1 1169 1169  20287 Mar 11  2010 pcre_tables.c
-rw-r--r-- 1 1169 1169   3704 Mar 11  2010 pcre_globals.c
-rw-r--r-- 1 1169 1169  27866 Mar 19  2010 configure.ac
-rwxr-xr-x 1 1169 1169 243248 Mar 19  2010 ltmain.sh
-rwxr-xr-x 1 1169 1169  11492 Mar 19  2010 missing
-rwxr-xr-x 1 1169 1169  13663 Mar 19  2010 install-sh
-rw-r--r-- 1 1169 1169  15578 Mar 19  2010 INSTALL
-rwxr-xr-x 1 1169 1169  18688 Mar 19  2010 depcomp
-rwxr-xr-x 1 1169 1169  34539 Mar 19  2010 config.sub
-rwxr-xr-x 1 1169 1169  46181 Mar 19  2010 config.guess
-rw-r--r-- 1 1169 1169  33566 Mar 19  2010 aclocal.m4
-rwxr-xr-x 1 1169 1169 641814 Mar 19  2010 configure
-rw-r--r-- 1 1169 1169  10210 Mar 19  2010 config.h.in
-rw-r--r-- 1 1169 1169 184726 Mar 19  2010 ChangeLog
-rw-r--r-- 1 1169 1169  18364 Mar 19  2010 NEWS
-rw-r--r-- 1 1169 1169  55143 Mar 19  2010 Makefile.in
-rw-r--r-- 1 1169 1169  12874 Mar 19  2010 pcre.h.generic
-rw-r--r-- 1 1169 1169  11547 Mar 19  2010 config.h.generic
drwxr-xr-x 2 1169 1169   4096 Mar 19  2010 testdata
drwxr-xr-x 2 1169 1169   4096 Mar 19  2010 m4
drwxr-xr-x 3 1169 1169   4096 Mar 19  2010 doc
drwxr-xr-x 2 1169 1169   4096 Mar 19  2010 cmake

 

end

分享到:
评论

相关推荐

    PCRE(Perl Compatible Regular Expressions)

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正规表达式库.这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译速度...

    pcre 8.30-Perl Compatible Regular Expressions

    Perl兼容正则表达式,Perl Compatible Regular Expressions,一个由Philip Hazel开发的,为很多现代工具所使用的库。

    pcre(Perl Compatible Regular Expressions)库源代码

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。

    Perl-compatible Regular Expressions VC compile project

    The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences. Certain features that appeared in ...

    PCRE 【Perl兼容正则表达式解析库】

    Perl兼容正则表达式解析库,本资源包是作者制作的静态库,版本为7.8。使用VC6在WinXp下编译通过。使用时请将pcre.h放到VC的include目录下。

    pcre-8.12 Binary windows pcre二进制windows版

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正规表达式库.这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。 在unix上可以通过configure;make;make install 来...

    pcre-7.7.tar.bz2

    PCRE - Perl Compatible Regular Expressions

    pcre2-10.22.tar.gz

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译...

    pcre-8.39.tar.bz2

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译...

    让Nginx支持Rewrite功能,所依赖的PCRE包:pcre_8.35

    PCRE 作用是让 Nginx 支持 Rewrite 功能。 PCRE (Perl Compatible Regular Expressions) 包括 perl 兼容的正规表达式库。

    pcre-7.9-static for windows

    PCRE(Perl Compatible Regular Expressions)静态库,用于Windows。 使用(VS 为例): 1. 向项目属性->VC++目录->包含目录中添加pcre-7.9-static目录; 2. 向项目属性->VC++目录->库目录中添加pcre-7.9-static目录...

    pcre-8.11.zip

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正规表达式库.这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译速度...

    pcre-8.42.tar.bz2

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。apache和nginx等常用软件需要依赖pcre库。

    pcre-8.45,Nginx的http模块使用pcre来解析正则表达式

    PCRE(Perl Compatible Regular Expressions)库是一组函数,使用与Perl 5相同的语法和语义实现正则表达式模式匹配。除了一组POSIX兼容的包装函数外,PCRE还拥有自己的原生API。 Nginx的http模块使用pcre来解析正则...

    Nginx 核心模块与配置实践 (1)1

    (3)PCRE库PCRE(Perl Compatible Regular Expressions,Perl兼容正则表达式)是由Philip Hazel开发的函数

    Nginx 核心模块与配置实践1

    (3)PCRE库PCRE(Perl Compatible Regular Expressions,Perl兼容正则表达式)是由Philip Hazel开发的函数

    pcre 7.0 源码

    Perl Compatible Regular Expressions 7.0 源代码

    nginx安装文档.pdf

    PCRE(Perl Compatible Regular Expressions)是⼀个Perl库,包括 perl 兼容的正则表达式库。Nginx的 http模块使⽤pcre来解析正则表达式,所以需要在linux上安装pcre库。 注:pcre-devel是使⽤pcre开发的⼀个⼆次开发...

    pcre2-10.23-正则库.zip

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。这些在执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的。Boost太庞大了,使用boost regex后,程序的编译...

    Nginx Linux_ubuntu离线安装包

    PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。nginx的http模块使用pcre来解析正则表达式,是nginx必需的依赖。 nginx使用zlib对http包的内容进行gzip。 OpenSSL 是一个...

Global site tag (gtag.js) - Google Analytics