实例介绍
perl语言兼容正则表达式)是一个用C语言编写的正则表达式函数库,由菲利普.海泽(Philip Hazel)编写。PCRE是一个轻量级的函数库,比Boost之类的正则表达式库小得多。PCRE十分易用,同时功能也很强大,性能超过了POSIX正则表达式库和一些经典的正则表达式库 [1] 。 和Boost正则表达式库的比较显示 [2] ,双方的性能相差无几,PCRE在匹配简单字符串时更快,Boost则在匹配较长字符串时胜出---但两者差距很小,考虑到PCRE的大小和易用性,我们可以认为PCRE更值得考虑。 PCRE被广泛使用在许多开源软件之中,最著名的莫过于Apache HTTP服务器和PHP脚
【实例截图】
【核心代码】
cf6f500e-1887-43ec-8ec1-a3f6261dd109
└── pcre-8.42
├── 132html
├── aclocal.m4
├── ar-lib
├── AUTHORS
├── ChangeLog
├── CheckMan
├── CleanTxt
├── cmake
│ ├── COPYING-CMAKE-SCRIPTS
│ ├── FindEditline.cmake
│ ├── FindPackageHandleStandardArgs.cmake
│ └── FindReadline.cmake
├── CMakeLists.txt
├── compile
├── config-cmake.h.in
├── config.guess
├── config.h.generic
├── config.h.in
├── config.sub
├── configure
├── configure.ac
├── COPYING
├── depcomp
├── Detrail
├── dftables.c
├── doc
│ ├── html
│ │ ├── index.html
│ │ ├── NON-AUTOTOOLS-BUILD.txt
│ │ ├── pcre16.html
│ │ ├── pcre32.html
│ │ ├── pcreapi.html
│ │ ├── pcre_assign_jit_stack.html
│ │ ├── pcrebuild.html
│ │ ├── pcrecallout.html
│ │ ├── pcrecompat.html
│ │ ├── pcre_compile2.html
│ │ ├── pcre_compile.html
│ │ ├── pcre-config.html
│ │ ├── pcre_config.html
│ │ ├── pcre_copy_named_substring.html
│ │ ├── pcre_copy_substring.html
│ │ ├── pcrecpp.html
│ │ ├── pcredemo.html
│ │ ├── pcre_dfa_exec.html
│ │ ├── pcre_exec.html
│ │ ├── pcre_free_study.html
│ │ ├── pcre_free_substring.html
│ │ ├── pcre_free_substring_list.html
│ │ ├── pcre_fullinfo.html
│ │ ├── pcre_get_named_substring.html
│ │ ├── pcre_get_stringnumber.html
│ │ ├── pcre_get_stringtable_entries.html
│ │ ├── pcre_get_substring.html
│ │ ├── pcre_get_substring_list.html
│ │ ├── pcregrep.html
│ │ ├── pcre.html
│ │ ├── pcre_jit_exec.html
│ │ ├── pcrejit.html
│ │ ├── pcre_jit_stack_alloc.html
│ │ ├── pcre_jit_stack_free.html
│ │ ├── pcrelimits.html
│ │ ├── pcre_maketables.html
│ │ ├── pcrematching.html
│ │ ├── pcrepartial.html
│ │ ├── pcrepattern.html
│ │ ├── pcre_pattern_to_host_byte_order.html
│ │ ├── pcreperform.html
│ │ ├── pcreposix.html
│ │ ├── pcreprecompile.html
│ │ ├── pcre_refcount.html
│ │ ├── pcresample.html
│ │ ├── pcrestack.html
│ │ ├── pcre_study.html
│ │ ├── pcresyntax.html
│ │ ├── pcretest.html
│ │ ├── pcreunicode.html
│ │ ├── pcre_utf16_to_host_byte_order.html
│ │ ├── pcre_utf32_to_host_byte_order.html
│ │ ├── pcre_version.html
│ │ └── README.txt
│ ├── index.html.src
│ ├── pcre16.3
│ ├── pcre.3
│ ├── pcre32.3
│ ├── pcreapi.3
│ ├── pcre_assign_jit_stack.3
│ ├── pcrebuild.3
│ ├── pcrecallout.3
│ ├── pcrecompat.3
│ ├── pcre_compile2.3
│ ├── pcre_compile.3
│ ├── pcre-config.1
│ ├── pcre_config.3
│ ├── pcre-config.txt
│ ├── pcre_copy_named_substring.3
│ ├── pcre_copy_substring.3
│ ├── pcrecpp.3
│ ├── pcredemo.3
│ ├── pcre_dfa_exec.3
│ ├── pcre_exec.3
│ ├── pcre_free_study.3
│ ├── pcre_free_substring.3
│ ├── pcre_free_substring_list.3
│ ├── pcre_fullinfo.3
│ ├── pcre_get_named_substring.3
│ ├── pcre_get_stringnumber.3
│ ├── pcre_get_stringtable_entries.3
│ ├── pcre_get_substring.3
│ ├── pcre_get_substring_list.3
│ ├── pcregrep.1
│ ├── pcregrep.txt
│ ├── pcrejit.3
│ ├── pcre_jit_exec.3
│ ├── pcre_jit_stack_alloc.3
│ ├── pcre_jit_stack_free.3
│ ├── pcrelimits.3
│ ├── pcre_maketables.3
│ ├── pcrematching.3
│ ├── pcrepartial.3
│ ├── pcrepattern.3
│ ├── pcre_pattern_to_host_byte_order.3
│ ├── pcreperform.3
│ ├── pcreposix.3
│ ├── pcreprecompile.3
│ ├── pcre_refcount.3
│ ├── pcresample.3
│ ├── pcrestack.3
│ ├── pcre_study.3
│ ├── pcresyntax.3
│ ├── pcretest.1
│ ├── pcretest.txt
│ ├── pcre.txt
│ ├── pcreunicode.3
│ ├── pcre_utf16_to_host_byte_order.3
│ ├── pcre_utf32_to_host_byte_order.3
│ ├── pcre_version.3
│ └── perltest.txt
├── HACKING
├── INSTALL
├── install-sh
├── libpcre16.pc.in
├── libpcre32.pc.in
├── libpcrecpp.pc.in
├── libpcre.pc.in
├── libpcreposix.pc.in
├── LICENCE
├── ltmain.sh
├── m4
│ ├── ax_pthread.m4
│ ├── libtool.m4
│ ├── lt~obsolete.m4
│ ├── ltoptions.m4
│ ├── ltsugar.m4
│ ├── ltversion.m4
│ └── pcre_visibility.m4
├── Makefile.am
├── Makefile.in
├── makevp.bat
├── makevp_c.txt
├── makevp_l.txt
├── missing
├── NEWS
├── NON-AUTOTOOLS-BUILD
├── NON-UNIX-USE
├── pcre16_byte_order.c
├── pcre16_chartables.c
├── pcre16_compile.c
├── pcre16_config.c
├── pcre16_dfa_exec.c
├── pcre16_exec.c
├── pcre16_fullinfo.c
├── pcre16_get.c
├── pcre16_globals.c
├── pcre16_jit_compile.c
├── pcre16_maketables.c
├── pcre16_newline.c
├── pcre16_ord2utf16.c
├── pcre16_printint.c
├── pcre16_refcount.c
├── pcre16_string_utils.c
├── pcre16_study.c
├── pcre16_tables.c
├── pcre16_ucd.c
├── pcre16_utf16_utils.c
├── pcre16_valid_utf16.c
├── pcre16_version.c
├── pcre16_xclass.c
├── pcre32_byte_order.c
├── pcre32_chartables.c
├── pcre32_compile.c
├── pcre32_config.c
├── pcre32_dfa_exec.c
├── pcre32_exec.c
├── pcre32_fullinfo.c
├── pcre32_get.c
├── pcre32_globals.c
├── pcre32_jit_compile.c
├── pcre32_maketables.c
├── pcre32_newline.c
├── pcre32_ord2utf32.c
├── pcre32_printint.c
├── pcre32_refcount.c
├── pcre32_string_utils.c
├── pcre32_study.c
├── pcre32_tables.c
├── pcre32_ucd.c
├── pcre32_utf32_utils.c
├── pcre32_valid_utf32.c
├── pcre32_version.c
├── pcre32_xclass.c
├── pcre_byte_order.c
├── pcre_chartables.c.dist
├── pcre_compile.c
├── pcre_config.c
├── pcre-config.in
├── pcrecpparg.h.in
├── pcrecpp.cc
├── pcrecpp.h
├── pcrecpp_internal.h
├── pcrecpp_unittest.cc
├── pcredemo.c
├── pcre_dfa_exec.c
├── pcre_exec.c
├── pcre_fullinfo.c
├── pcre_get.c
├── pcregexp.pas
├── pcre_globals.c
├── pcregrep.c
├── pcre.h.generic
├── pcre.h.in
├── pcre_internal.h
├── pcre_jit_compile.c
├── pcre_jit_test.c
├── pcre_maketables.c
├── pcre_newline.c
├── pcre_ord2utf8.c
├── pcreposix.c
├── pcreposix.h
├── pcre_printint.c
├── pcre_refcount.c
├── pcre_scanner.cc
├── pcre_scanner.h
├── pcre_scanner_unittest.cc
├── pcre_stringpiece.cc
├── pcre_stringpiece.h.in
├── pcre_stringpiece_unittest.cc
├── pcre_string_utils.c
├── pcre_study.c
├── pcre_tables.c
├── pcretest.c
├── pcre_ucd.c
├── pcre_valid_utf8.c
├── pcre_version.c
├── pcre_xclass.c
├── perltest.pl
├── PrepareRelease
├── README
├── RunGrepTest
├── RunTest
├── RunTest.bat
├── sljit
│ ├── sljitConfig.h
│ ├── sljitConfigInternal.h
│ ├── sljitExecAllocator.c
│ ├── sljitLir.c
│ ├── sljitLir.h
│ ├── sljitNativeARM_32.c
│ ├── sljitNativeARM_64.c
│ ├── sljitNativeARM_T2_32.c
│ ├── sljitNativeMIPS_32.c
│ ├── sljitNativeMIPS_64.c
│ ├── sljitNativeMIPS_common.c
│ ├── sljitNativePPC_32.c
│ ├── sljitNativePPC_64.c
│ ├── sljitNativePPC_common.c
│ ├── sljitNativeSPARC_32.c
│ ├── sljitNativeSPARC_common.c
│ ├── sljitNativeTILEGX_64.c
│ ├── sljitNativeTILEGX-encoder.c
│ ├── sljitNativeX86_32.c
│ ├── sljitNativeX86_64.c
│ ├── sljitNativeX86_common.c
│ └── sljitUtils.c
├── testdata
│ ├── grepbinary
│ ├── grepfilelist
│ ├── grepinput
│ ├── grepinput3
│ ├── grepinput8
│ ├── grepinputv
│ ├── grepinputx
│ ├── greplist
│ ├── grepoutput
│ ├── grepoutput8
│ ├── grepoutputN
│ ├── greppatN4
│ ├── saved16
│ ├── saved16BE-1
│ ├── saved16BE-2
│ ├── saved16LE-1
│ ├── saved16LE-2
│ ├── saved32
│ ├── saved32BE-1
│ ├── saved32BE-2
│ ├── saved32LE-1
│ ├── saved32LE-2
│ ├── saved8
│ ├── testinput1
│ ├── testinput10
│ ├── testinput11
│ ├── testinput12
│ ├── testinput13
│ ├── testinput14
│ ├── testinput15
│ ├── testinput16
│ ├── testinput17
│ ├── testinput18
│ ├── testinput19
│ ├── testinput2
│ ├── testinput20
│ ├── testinput21
│ ├── testinput22
│ ├── testinput23
│ ├── testinput24
│ ├── testinput25
│ ├── testinput26
│ ├── testinput3
│ ├── testinput4
│ ├── testinput5
│ ├── testinput6
│ ├── testinput7
│ ├── testinput8
│ ├── testinput9
│ ├── testinputEBC
│ ├── testoutput1
│ ├── testoutput10
│ ├── testoutput11-16
│ ├── testoutput11-32
│ ├── testoutput11-8
│ ├── testoutput12
│ ├── testoutput13
│ ├── testoutput14
│ ├── testoutput15
│ ├── testoutput16
│ ├── testoutput17
│ ├── testoutput18-16
│ ├── testoutput18-32
│ ├── testoutput19
│ ├── testoutput2
│ ├── testoutput20
│ ├── testoutput21-16
│ ├── testoutput21-32
│ ├── testoutput22-16
│ ├── testoutput22-32
│ ├── testoutput23
│ ├── testoutput24
│ ├── testoutput25
│ ├── testoutput26
│ ├── testoutput3
│ ├── testoutput3A
│ ├── testoutput3B
│ ├── testoutput4
│ ├── testoutput5
│ ├── testoutput6
│ ├── testoutput7
│ ├── testoutput8
│ ├── testoutput9
│ ├── testoutputEBC
│ ├── valgrind-jit.supp
│ ├── wintestinput3
│ └── wintestoutput3
├── test-driver
└── ucp.h
7 directories, 368 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论