esruby 0.0.0 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +6 -6
- data/bin/esruby +9 -0
- data/lib/esruby.rb +8 -0
- data/resources/mruby/build_config.rb +0 -1
- data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +1 -1
- data/resources/project_template/app/app.rb +2 -0
- data/resources/project_template/config.rb +35 -0
- data/resources/project_template/www/index.html +17 -0
- metadata +6 -377
- data/resources/mruby/bin/mirb +0 -0
- data/resources/mruby/bin/mrbc +0 -0
- data/resources/mruby/bin/mruby +0 -0
- data/resources/mruby/bin/mruby-strip +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/README.md +0 -82
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +0 -63
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +0 -232
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +0 -333
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +0 -313
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +0 -959
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +0 -5
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +0 -4981
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +0 -67
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +0 -113
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +0 -473
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +0 -370
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +0 -877
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +0 -2917
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +0 -611
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +0 -639
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +0 -7
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +0 -253
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +0 -935
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +0 -551
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +0 -1015
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +0 -616
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +0 -1230
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +0 -273
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +0 -2421
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +0 -1144
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +0 -17
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +0 -29
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +0 -343
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +0 -54
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +0 -1552
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +0 -392
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +0 -392
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +0 -343
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +0 -1804
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +0 -1082
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +0 -708
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +0 -212
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +0 -180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +0 -109
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +0 -204
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +0 -383
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +0 -76
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +0 -112
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +0 -91
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +0 -65
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +0 -128
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +0 -68
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +0 -57
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +0 -60
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +0 -64
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +0 -55
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +0 -58
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +0 -51
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +0 -68
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +0 -57
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +0 -2786
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +0 -517
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +0 -243
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +0 -216
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +0 -368
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +0 -426
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +0 -757
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +0 -458
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +0 -86
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +0 -233
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +0 -474
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +0 -2953
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +0 -195
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +0 -292
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +0 -158
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +0 -225
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +0 -521
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +0 -1082
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +0 -270
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +0 -180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +0 -86
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +0 -202
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +0 -9909
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +0 -390
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +0 -389
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +0 -106
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +0 -76
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +0 -59
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +0 -52
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +0 -125
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +0 -103
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +0 -95
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +0 -62
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +0 -55
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +0 -49
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +0 -104
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +0 -33
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +0 -36
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +0 -56
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +0 -2823
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +0 -520
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +0 -214
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +0 -185
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +0 -348
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +0 -679
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +0 -740
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +0 -437
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +0 -67
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +0 -206
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +0 -445
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +0 -2983
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +0 -177
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +0 -270
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +0 -151
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +0 -99
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +0 -215
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +0 -496
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +0 -1079
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +0 -1012
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +0 -255
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +0 -42
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +0 -527
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +0 -13
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +0 -9636
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +0 -309
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +0 -7844
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +0 -369
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +0 -123
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +0 -23
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +0 -89
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +0 -66
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +0 -20
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +0 -20
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +0 -331
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +0 -133
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +0 -130
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +0 -156
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +0 -82
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +0 -141
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +0 -131
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +0 -318
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +0 -8386
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +0 -186
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +0 -3582
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +0 -7049
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +0 -231
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +0 -662
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +0 -84
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +0 -2744
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +0 -8560
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +0 -1614
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +0 -151
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +0 -210
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +0 -94
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +0 -766
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +0 -199
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +0 -172
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +0 -159
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +0 -211
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +0 -43
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +0 -179
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +0 -150
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +0 -1562
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +0 -655
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +0 -3298
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +0 -312
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +0 -922
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +0 -710
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +0 -1291
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +0 -174
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +0 -406
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +0 -845
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +0 -3180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +0 -419
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +0 -146
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +0 -5488
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +0 -237
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +0 -484
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +0 -289
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +0 -1766
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +0 -985
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +0 -2008
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +0 -2515
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +0 -404
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +0 -1881
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +0 -269
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +0 -421
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +0 -2014
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +0 -164
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +0 -1348
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +0 -547
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +0 -810
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +0 -2836
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +0 -332
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +0 -3
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +0 -611
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +0 -15
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +0 -11
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +0 -4
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +0 -43
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +0 -7
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +0 -707
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +0 -17
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +0 -2
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved8 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput1 +0 -5306
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +0 -1337
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +0 -135
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +0 -89
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +0 -9
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +0 -329
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +0 -430
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +0 -296
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +0 -296
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +0 -22
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +0 -3813
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +0 -19
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +0 -16
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +0 -13
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +0 -16
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +0 -77
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +0 -32
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +0 -80
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +0 -95
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +0 -624
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +0 -772
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +0 -1319
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +0 -672
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +0 -4801
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +0 -717
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +0 -121
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +0 -8798
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +0 -2726
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +0 -181
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +0 -21
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +0 -476
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +0 -1269
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +0 -121
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +0 -505
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +0 -1022
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +0 -1019
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +0 -88
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +0 -12484
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +0 -27
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +0 -42
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +0 -145
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +0 -79
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +0 -148
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +0 -169
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +0 -1094
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +0 -1849
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +0 -2137
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +0 -1473
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +0 -8019
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +0 -1371
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +0 -182
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +0 -91
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +0 -166
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +0 -197
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +0 -23
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +0 -364
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +0 -94
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +0 -264
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +0 -201
@@ -1,99 +0,0 @@
|
|
1
|
-
.TH PCRESAMPLE 3 "10 January 2012" "PCRE 8.30"
|
2
|
-
.SH NAME
|
3
|
-
PCRE - Perl-compatible regular expressions
|
4
|
-
.SH "PCRE SAMPLE PROGRAM"
|
5
|
-
.rs
|
6
|
-
.sp
|
7
|
-
A simple, complete demonstration program, to get you started with using PCRE,
|
8
|
-
is supplied in the file \fIpcredemo.c\fP in the PCRE distribution. A listing of
|
9
|
-
this program is given in the
|
10
|
-
.\" HREF
|
11
|
-
\fBpcredemo\fP
|
12
|
-
.\"
|
13
|
-
documentation. If you do not have a copy of the PCRE distribution, you can save
|
14
|
-
this listing to re-create \fIpcredemo.c\fP.
|
15
|
-
.P
|
16
|
-
The demonstration program, which uses the original PCRE 8-bit library, compiles
|
17
|
-
the regular expression that is its first argument, and matches it against the
|
18
|
-
subject string in its second argument. No PCRE options are set, and default
|
19
|
-
character tables are used. If matching succeeds, the program outputs the
|
20
|
-
portion of the subject that matched, together with the contents of any captured
|
21
|
-
substrings.
|
22
|
-
.P
|
23
|
-
If the -g option is given on the command line, the program then goes on to
|
24
|
-
check for further matches of the same regular expression in the same subject
|
25
|
-
string. The logic is a little bit tricky because of the possibility of matching
|
26
|
-
an empty string. Comments in the code explain what is going on.
|
27
|
-
.P
|
28
|
-
If PCRE is installed in the standard include and library directories for your
|
29
|
-
operating system, you should be able to compile the demonstration program using
|
30
|
-
this command:
|
31
|
-
.sp
|
32
|
-
gcc -o pcredemo pcredemo.c -lpcre
|
33
|
-
.sp
|
34
|
-
If PCRE is installed elsewhere, you may need to add additional options to the
|
35
|
-
command line. For example, on a Unix-like system that has PCRE installed in
|
36
|
-
\fI/usr/local\fP, you can compile the demonstration program using a command
|
37
|
-
like this:
|
38
|
-
.sp
|
39
|
-
.\" JOINSH
|
40
|
-
gcc -o pcredemo -I/usr/local/include pcredemo.c \e
|
41
|
-
-L/usr/local/lib -lpcre
|
42
|
-
.sp
|
43
|
-
In a Windows environment, if you want to statically link the program against a
|
44
|
-
non-dll \fBpcre.a\fP file, you must uncomment the line that defines PCRE_STATIC
|
45
|
-
before including \fBpcre.h\fP, because otherwise the \fBpcre_malloc()\fP and
|
46
|
-
\fBpcre_free()\fP exported functions will be declared
|
47
|
-
\fB__declspec(dllimport)\fP, with unwanted results.
|
48
|
-
.P
|
49
|
-
Once you have compiled and linked the demonstration program, you can run simple
|
50
|
-
tests like this:
|
51
|
-
.sp
|
52
|
-
./pcredemo 'cat|dog' 'the cat sat on the mat'
|
53
|
-
./pcredemo -g 'cat|dog' 'the dog sat on the cat'
|
54
|
-
.sp
|
55
|
-
Note that there is a much more comprehensive test program, called
|
56
|
-
.\" HREF
|
57
|
-
\fBpcretest\fP,
|
58
|
-
.\"
|
59
|
-
which supports many more facilities for testing regular expressions and both
|
60
|
-
PCRE libraries. The
|
61
|
-
.\" HREF
|
62
|
-
\fBpcredemo\fP
|
63
|
-
.\"
|
64
|
-
program is provided as a simple coding example.
|
65
|
-
.P
|
66
|
-
If you try to run
|
67
|
-
.\" HREF
|
68
|
-
\fBpcredemo\fP
|
69
|
-
.\"
|
70
|
-
when PCRE is not installed in the standard library directory, you may get an
|
71
|
-
error like this on some operating systems (e.g. Solaris):
|
72
|
-
.sp
|
73
|
-
ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory
|
74
|
-
.sp
|
75
|
-
This is caused by the way shared library support works on those systems. You
|
76
|
-
need to add
|
77
|
-
.sp
|
78
|
-
-R/usr/local/lib
|
79
|
-
.sp
|
80
|
-
(for example) to the compile command to get round this problem.
|
81
|
-
.
|
82
|
-
.
|
83
|
-
.SH AUTHOR
|
84
|
-
.rs
|
85
|
-
.sp
|
86
|
-
.nf
|
87
|
-
Philip Hazel
|
88
|
-
University Computing Service
|
89
|
-
Cambridge CB2 3QH, England.
|
90
|
-
.fi
|
91
|
-
.
|
92
|
-
.
|
93
|
-
.SH REVISION
|
94
|
-
.rs
|
95
|
-
.sp
|
96
|
-
.nf
|
97
|
-
Last updated: 10 January 2012
|
98
|
-
Copyright (c) 1997-2012 University of Cambridge.
|
99
|
-
.fi
|
@@ -1,215 +0,0 @@
|
|
1
|
-
.TH PCRESTACK 3 "24 June 2012" "PCRE 8.30"
|
2
|
-
.SH NAME
|
3
|
-
PCRE - Perl-compatible regular expressions
|
4
|
-
.SH "PCRE DISCUSSION OF STACK USAGE"
|
5
|
-
.rs
|
6
|
-
.sp
|
7
|
-
When you call \fBpcre[16|32]_exec()\fP, it makes use of an internal function
|
8
|
-
called \fBmatch()\fP. This calls itself recursively at branch points in the
|
9
|
-
pattern, in order to remember the state of the match so that it can back up and
|
10
|
-
try a different alternative if the first one fails. As matching proceeds deeper
|
11
|
-
and deeper into the tree of possibilities, the recursion depth increases. The
|
12
|
-
\fBmatch()\fP function is also called in other circumstances, for example,
|
13
|
-
whenever a parenthesized sub-pattern is entered, and in certain cases of
|
14
|
-
repetition.
|
15
|
-
.P
|
16
|
-
Not all calls of \fBmatch()\fP increase the recursion depth; for an item such
|
17
|
-
as a* it may be called several times at the same level, after matching
|
18
|
-
different numbers of a's. Furthermore, in a number of cases where the result of
|
19
|
-
the recursive call would immediately be passed back as the result of the
|
20
|
-
current call (a "tail recursion"), the function is just restarted instead.
|
21
|
-
.P
|
22
|
-
The above comments apply when \fBpcre[16|32]_exec()\fP is run in its normal
|
23
|
-
interpretive manner. If the pattern was studied with the
|
24
|
-
PCRE_STUDY_JIT_COMPILE option, and just-in-time compiling was successful, and
|
25
|
-
the options passed to \fBpcre[16|32]_exec()\fP were not incompatible, the matching
|
26
|
-
process uses the JIT-compiled code instead of the \fBmatch()\fP function. In
|
27
|
-
this case, the memory requirements are handled entirely differently. See the
|
28
|
-
.\" HREF
|
29
|
-
\fBpcrejit\fP
|
30
|
-
.\"
|
31
|
-
documentation for details.
|
32
|
-
.P
|
33
|
-
The \fBpcre[16|32]_dfa_exec()\fP function operates in an entirely different way,
|
34
|
-
and uses recursion only when there is a regular expression recursion or
|
35
|
-
subroutine call in the pattern. This includes the processing of assertion and
|
36
|
-
"once-only" subpatterns, which are handled like subroutine calls. Normally,
|
37
|
-
these are never very deep, and the limit on the complexity of
|
38
|
-
\fBpcre[16|32]_dfa_exec()\fP is controlled by the amount of workspace it is given.
|
39
|
-
However, it is possible to write patterns with runaway infinite recursions;
|
40
|
-
such patterns will cause \fBpcre[16|32]_dfa_exec()\fP to run out of stack. At
|
41
|
-
present, there is no protection against this.
|
42
|
-
.P
|
43
|
-
The comments that follow do NOT apply to \fBpcre[16|32]_dfa_exec()\fP; they are
|
44
|
-
relevant only for \fBpcre[16|32]_exec()\fP without the JIT optimization.
|
45
|
-
.
|
46
|
-
.
|
47
|
-
.SS "Reducing \fBpcre[16|32]_exec()\fP's stack usage"
|
48
|
-
.rs
|
49
|
-
.sp
|
50
|
-
Each time that \fBmatch()\fP is actually called recursively, it uses memory
|
51
|
-
from the process stack. For certain kinds of pattern and data, very large
|
52
|
-
amounts of stack may be needed, despite the recognition of "tail recursion".
|
53
|
-
You can often reduce the amount of recursion, and therefore the amount of stack
|
54
|
-
used, by modifying the pattern that is being matched. Consider, for example,
|
55
|
-
this pattern:
|
56
|
-
.sp
|
57
|
-
([^<]|<(?!inet))+
|
58
|
-
.sp
|
59
|
-
It matches from wherever it starts until it encounters "<inet" or the end of
|
60
|
-
the data, and is the kind of pattern that might be used when processing an XML
|
61
|
-
file. Each iteration of the outer parentheses matches either one character that
|
62
|
-
is not "<" or a "<" that is not followed by "inet". However, each time a
|
63
|
-
parenthesis is processed, a recursion occurs, so this formulation uses a stack
|
64
|
-
frame for each matched character. For a long string, a lot of stack is
|
65
|
-
required. Consider now this rewritten pattern, which matches exactly the same
|
66
|
-
strings:
|
67
|
-
.sp
|
68
|
-
([^<]++|<(?!inet))+
|
69
|
-
.sp
|
70
|
-
This uses very much less stack, because runs of characters that do not contain
|
71
|
-
"<" are "swallowed" in one item inside the parentheses. Recursion happens only
|
72
|
-
when a "<" character that is not followed by "inet" is encountered (and we
|
73
|
-
assume this is relatively rare). A possessive quantifier is used to stop any
|
74
|
-
backtracking into the runs of non-"<" characters, but that is not related to
|
75
|
-
stack usage.
|
76
|
-
.P
|
77
|
-
This example shows that one way of avoiding stack problems when matching long
|
78
|
-
subject strings is to write repeated parenthesized subpatterns to match more
|
79
|
-
than one character whenever possible.
|
80
|
-
.
|
81
|
-
.
|
82
|
-
.SS "Compiling PCRE to use heap instead of stack for \fBpcre[16|32]_exec()\fP"
|
83
|
-
.rs
|
84
|
-
.sp
|
85
|
-
In environments where stack memory is constrained, you might want to compile
|
86
|
-
PCRE to use heap memory instead of stack for remembering back-up points when
|
87
|
-
\fBpcre[16|32]_exec()\fP is running. This makes it run a lot more slowly, however.
|
88
|
-
Details of how to do this are given in the
|
89
|
-
.\" HREF
|
90
|
-
\fBpcrebuild\fP
|
91
|
-
.\"
|
92
|
-
documentation. When built in this way, instead of using the stack, PCRE obtains
|
93
|
-
and frees memory by calling the functions that are pointed to by the
|
94
|
-
\fBpcre[16|32]_stack_malloc\fP and \fBpcre[16|32]_stack_free\fP variables. By
|
95
|
-
default, these point to \fBmalloc()\fP and \fBfree()\fP, but you can replace
|
96
|
-
the pointers to cause PCRE to use your own functions. Since the block sizes are
|
97
|
-
always the same, and are always freed in reverse order, it may be possible to
|
98
|
-
implement customized memory handlers that are more efficient than the standard
|
99
|
-
functions.
|
100
|
-
.
|
101
|
-
.
|
102
|
-
.SS "Limiting \fBpcre[16|32]_exec()\fP's stack usage"
|
103
|
-
.rs
|
104
|
-
.sp
|
105
|
-
You can set limits on the number of times that \fBmatch()\fP is called, both in
|
106
|
-
total and recursively. If a limit is exceeded, \fBpcre[16|32]_exec()\fP returns an
|
107
|
-
error code. Setting suitable limits should prevent it from running out of
|
108
|
-
stack. The default values of the limits are very large, and unlikely ever to
|
109
|
-
operate. They can be changed when PCRE is built, and they can also be set when
|
110
|
-
\fBpcre[16|32]_exec()\fP is called. For details of these interfaces, see the
|
111
|
-
.\" HREF
|
112
|
-
\fBpcrebuild\fP
|
113
|
-
.\"
|
114
|
-
documentation and the
|
115
|
-
.\" HTML <a href="pcreapi.html#extradata">
|
116
|
-
.\" </a>
|
117
|
-
section on extra data for \fBpcre[16|32]_exec()\fP
|
118
|
-
.\"
|
119
|
-
in the
|
120
|
-
.\" HREF
|
121
|
-
\fBpcreapi\fP
|
122
|
-
.\"
|
123
|
-
documentation.
|
124
|
-
.P
|
125
|
-
As a very rough rule of thumb, you should reckon on about 500 bytes per
|
126
|
-
recursion. Thus, if you want to limit your stack usage to 8Mb, you should set
|
127
|
-
the limit at 16000 recursions. A 64Mb stack, on the other hand, can support
|
128
|
-
around 128000 recursions.
|
129
|
-
.P
|
130
|
-
In Unix-like environments, the \fBpcretest\fP test program has a command line
|
131
|
-
option (\fB-S\fP) that can be used to increase the size of its stack. As long
|
132
|
-
as the stack is large enough, another option (\fB-M\fP) can be used to find the
|
133
|
-
smallest limits that allow a particular pattern to match a given subject
|
134
|
-
string. This is done by calling \fBpcre[16|32]_exec()\fP repeatedly with different
|
135
|
-
limits.
|
136
|
-
.
|
137
|
-
.
|
138
|
-
.SS "Obtaining an estimate of stack usage"
|
139
|
-
.rs
|
140
|
-
.sp
|
141
|
-
The actual amount of stack used per recursion can vary quite a lot, depending
|
142
|
-
on the compiler that was used to build PCRE and the optimization or debugging
|
143
|
-
options that were set for it. The rule of thumb value of 500 bytes mentioned
|
144
|
-
above may be larger or smaller than what is actually needed. A better
|
145
|
-
approximation can be obtained by running this command:
|
146
|
-
.sp
|
147
|
-
pcretest -m -C
|
148
|
-
.sp
|
149
|
-
The \fB-C\fP option causes \fBpcretest\fP to output information about the
|
150
|
-
options with which PCRE was compiled. When \fB-m\fP is also given (before
|
151
|
-
\fB-C\fP), information about stack use is given in a line like this:
|
152
|
-
.sp
|
153
|
-
Match recursion uses stack: approximate frame size = 640 bytes
|
154
|
-
.sp
|
155
|
-
The value is approximate because some recursions need a bit more (up to perhaps
|
156
|
-
16 more bytes).
|
157
|
-
.P
|
158
|
-
If the above command is given when PCRE is compiled to use the heap instead of
|
159
|
-
the stack for recursion, the value that is output is the size of each block
|
160
|
-
that is obtained from the heap.
|
161
|
-
.
|
162
|
-
.
|
163
|
-
.SS "Changing stack size in Unix-like systems"
|
164
|
-
.rs
|
165
|
-
.sp
|
166
|
-
In Unix-like environments, there is not often a problem with the stack unless
|
167
|
-
very long strings are involved, though the default limit on stack size varies
|
168
|
-
from system to system. Values from 8Mb to 64Mb are common. You can find your
|
169
|
-
default limit by running the command:
|
170
|
-
.sp
|
171
|
-
ulimit -s
|
172
|
-
.sp
|
173
|
-
Unfortunately, the effect of running out of stack is often SIGSEGV, though
|
174
|
-
sometimes a more explicit error message is given. You can normally increase the
|
175
|
-
limit on stack size by code such as this:
|
176
|
-
.sp
|
177
|
-
struct rlimit rlim;
|
178
|
-
getrlimit(RLIMIT_STACK, &rlim);
|
179
|
-
rlim.rlim_cur = 100*1024*1024;
|
180
|
-
setrlimit(RLIMIT_STACK, &rlim);
|
181
|
-
.sp
|
182
|
-
This reads the current limits (soft and hard) using \fBgetrlimit()\fP, then
|
183
|
-
attempts to increase the soft limit to 100Mb using \fBsetrlimit()\fP. You must
|
184
|
-
do this before calling \fBpcre[16|32]_exec()\fP.
|
185
|
-
.
|
186
|
-
.
|
187
|
-
.SS "Changing stack size in Mac OS X"
|
188
|
-
.rs
|
189
|
-
.sp
|
190
|
-
Using \fBsetrlimit()\fP, as described above, should also work on Mac OS X. It
|
191
|
-
is also possible to set a stack size when linking a program. There is a
|
192
|
-
discussion about stack sizes in Mac OS X at this web site:
|
193
|
-
.\" HTML <a href="http://developer.apple.com/qa/qa2005/qa1419.html">
|
194
|
-
.\" </a>
|
195
|
-
http://developer.apple.com/qa/qa2005/qa1419.html.
|
196
|
-
.\"
|
197
|
-
.
|
198
|
-
.
|
199
|
-
.SH AUTHOR
|
200
|
-
.rs
|
201
|
-
.sp
|
202
|
-
.nf
|
203
|
-
Philip Hazel
|
204
|
-
University Computing Service
|
205
|
-
Cambridge CB2 3QH, England.
|
206
|
-
.fi
|
207
|
-
.
|
208
|
-
.
|
209
|
-
.SH REVISION
|
210
|
-
.rs
|
211
|
-
.sp
|
212
|
-
.nf
|
213
|
-
Last updated: 24 June 2012
|
214
|
-
Copyright (c) 1997-2012 University of Cambridge.
|
215
|
-
.fi
|
@@ -1,496 +0,0 @@
|
|
1
|
-
.TH PCRESYNTAX 3 "11 November 2012" "PCRE 8.32"
|
2
|
-
.SH NAME
|
3
|
-
PCRE - Perl-compatible regular expressions
|
4
|
-
.SH "PCRE REGULAR EXPRESSION SYNTAX SUMMARY"
|
5
|
-
.rs
|
6
|
-
.sp
|
7
|
-
The full syntax and semantics of the regular expressions that are supported by
|
8
|
-
PCRE are described in the
|
9
|
-
.\" HREF
|
10
|
-
\fBpcrepattern\fP
|
11
|
-
.\"
|
12
|
-
documentation. This document contains a quick-reference summary of the syntax.
|
13
|
-
.
|
14
|
-
.
|
15
|
-
.SH "QUOTING"
|
16
|
-
.rs
|
17
|
-
.sp
|
18
|
-
\ex where x is non-alphanumeric is a literal x
|
19
|
-
\eQ...\eE treat enclosed characters as literal
|
20
|
-
.
|
21
|
-
.
|
22
|
-
.SH "CHARACTERS"
|
23
|
-
.rs
|
24
|
-
.sp
|
25
|
-
\ea alarm, that is, the BEL character (hex 07)
|
26
|
-
\ecx "control-x", where x is any ASCII character
|
27
|
-
\ee escape (hex 1B)
|
28
|
-
\ef form feed (hex 0C)
|
29
|
-
\en newline (hex 0A)
|
30
|
-
\er carriage return (hex 0D)
|
31
|
-
\et tab (hex 09)
|
32
|
-
\eddd character with octal code ddd, or backreference
|
33
|
-
\exhh character with hex code hh
|
34
|
-
\ex{hhh..} character with hex code hhh..
|
35
|
-
.
|
36
|
-
.
|
37
|
-
.SH "CHARACTER TYPES"
|
38
|
-
.rs
|
39
|
-
.sp
|
40
|
-
. any character except newline;
|
41
|
-
in dotall mode, any character whatsoever
|
42
|
-
\eC one data unit, even in UTF mode (best avoided)
|
43
|
-
\ed a decimal digit
|
44
|
-
\eD a character that is not a decimal digit
|
45
|
-
\eh a horizontal white space character
|
46
|
-
\eH a character that is not a horizontal white space character
|
47
|
-
\eN a character that is not a newline
|
48
|
-
\ep{\fIxx\fP} a character with the \fIxx\fP property
|
49
|
-
\eP{\fIxx\fP} a character without the \fIxx\fP property
|
50
|
-
\eR a newline sequence
|
51
|
-
\es a white space character
|
52
|
-
\eS a character that is not a white space character
|
53
|
-
\ev a vertical white space character
|
54
|
-
\eV a character that is not a vertical white space character
|
55
|
-
\ew a "word" character
|
56
|
-
\eW a "non-word" character
|
57
|
-
\eX a Unicode extended grapheme cluster
|
58
|
-
.sp
|
59
|
-
In PCRE, by default, \ed, \eD, \es, \eS, \ew, and \eW recognize only ASCII
|
60
|
-
characters, even in a UTF mode. However, this can be changed by setting the
|
61
|
-
PCRE_UCP option.
|
62
|
-
.
|
63
|
-
.
|
64
|
-
.SH "GENERAL CATEGORY PROPERTIES FOR \ep and \eP"
|
65
|
-
.rs
|
66
|
-
.sp
|
67
|
-
C Other
|
68
|
-
Cc Control
|
69
|
-
Cf Format
|
70
|
-
Cn Unassigned
|
71
|
-
Co Private use
|
72
|
-
Cs Surrogate
|
73
|
-
.sp
|
74
|
-
L Letter
|
75
|
-
Ll Lower case letter
|
76
|
-
Lm Modifier letter
|
77
|
-
Lo Other letter
|
78
|
-
Lt Title case letter
|
79
|
-
Lu Upper case letter
|
80
|
-
L& Ll, Lu, or Lt
|
81
|
-
.sp
|
82
|
-
M Mark
|
83
|
-
Mc Spacing mark
|
84
|
-
Me Enclosing mark
|
85
|
-
Mn Non-spacing mark
|
86
|
-
.sp
|
87
|
-
N Number
|
88
|
-
Nd Decimal number
|
89
|
-
Nl Letter number
|
90
|
-
No Other number
|
91
|
-
.sp
|
92
|
-
P Punctuation
|
93
|
-
Pc Connector punctuation
|
94
|
-
Pd Dash punctuation
|
95
|
-
Pe Close punctuation
|
96
|
-
Pf Final punctuation
|
97
|
-
Pi Initial punctuation
|
98
|
-
Po Other punctuation
|
99
|
-
Ps Open punctuation
|
100
|
-
.sp
|
101
|
-
S Symbol
|
102
|
-
Sc Currency symbol
|
103
|
-
Sk Modifier symbol
|
104
|
-
Sm Mathematical symbol
|
105
|
-
So Other symbol
|
106
|
-
.sp
|
107
|
-
Z Separator
|
108
|
-
Zl Line separator
|
109
|
-
Zp Paragraph separator
|
110
|
-
Zs Space separator
|
111
|
-
.
|
112
|
-
.
|
113
|
-
.SH "PCRE SPECIAL CATEGORY PROPERTIES FOR \ep and \eP"
|
114
|
-
.rs
|
115
|
-
.sp
|
116
|
-
Xan Alphanumeric: union of properties L and N
|
117
|
-
Xps POSIX space: property Z or tab, NL, VT, FF, CR
|
118
|
-
Xsp Perl space: property Z or tab, NL, FF, CR
|
119
|
-
Xwd Perl word: property Xan or underscore
|
120
|
-
.
|
121
|
-
.
|
122
|
-
.SH "SCRIPT NAMES FOR \ep AND \eP"
|
123
|
-
.rs
|
124
|
-
.sp
|
125
|
-
Arabic,
|
126
|
-
Armenian,
|
127
|
-
Avestan,
|
128
|
-
Balinese,
|
129
|
-
Bamum,
|
130
|
-
Batak,
|
131
|
-
Bengali,
|
132
|
-
Bopomofo,
|
133
|
-
Brahmi,
|
134
|
-
Braille,
|
135
|
-
Buginese,
|
136
|
-
Buhid,
|
137
|
-
Canadian_Aboriginal,
|
138
|
-
Carian,
|
139
|
-
Chakma,
|
140
|
-
Cham,
|
141
|
-
Cherokee,
|
142
|
-
Common,
|
143
|
-
Coptic,
|
144
|
-
Cuneiform,
|
145
|
-
Cypriot,
|
146
|
-
Cyrillic,
|
147
|
-
Deseret,
|
148
|
-
Devanagari,
|
149
|
-
Egyptian_Hieroglyphs,
|
150
|
-
Ethiopic,
|
151
|
-
Georgian,
|
152
|
-
Glagolitic,
|
153
|
-
Gothic,
|
154
|
-
Greek,
|
155
|
-
Gujarati,
|
156
|
-
Gurmukhi,
|
157
|
-
Han,
|
158
|
-
Hangul,
|
159
|
-
Hanunoo,
|
160
|
-
Hebrew,
|
161
|
-
Hiragana,
|
162
|
-
Imperial_Aramaic,
|
163
|
-
Inherited,
|
164
|
-
Inscriptional_Pahlavi,
|
165
|
-
Inscriptional_Parthian,
|
166
|
-
Javanese,
|
167
|
-
Kaithi,
|
168
|
-
Kannada,
|
169
|
-
Katakana,
|
170
|
-
Kayah_Li,
|
171
|
-
Kharoshthi,
|
172
|
-
Khmer,
|
173
|
-
Lao,
|
174
|
-
Latin,
|
175
|
-
Lepcha,
|
176
|
-
Limbu,
|
177
|
-
Linear_B,
|
178
|
-
Lisu,
|
179
|
-
Lycian,
|
180
|
-
Lydian,
|
181
|
-
Malayalam,
|
182
|
-
Mandaic,
|
183
|
-
Meetei_Mayek,
|
184
|
-
Meroitic_Cursive,
|
185
|
-
Meroitic_Hieroglyphs,
|
186
|
-
Miao,
|
187
|
-
Mongolian,
|
188
|
-
Myanmar,
|
189
|
-
New_Tai_Lue,
|
190
|
-
Nko,
|
191
|
-
Ogham,
|
192
|
-
Old_Italic,
|
193
|
-
Old_Persian,
|
194
|
-
Old_South_Arabian,
|
195
|
-
Old_Turkic,
|
196
|
-
Ol_Chiki,
|
197
|
-
Oriya,
|
198
|
-
Osmanya,
|
199
|
-
Phags_Pa,
|
200
|
-
Phoenician,
|
201
|
-
Rejang,
|
202
|
-
Runic,
|
203
|
-
Samaritan,
|
204
|
-
Saurashtra,
|
205
|
-
Sharada,
|
206
|
-
Shavian,
|
207
|
-
Sinhala,
|
208
|
-
Sora_Sompeng,
|
209
|
-
Sundanese,
|
210
|
-
Syloti_Nagri,
|
211
|
-
Syriac,
|
212
|
-
Tagalog,
|
213
|
-
Tagbanwa,
|
214
|
-
Tai_Le,
|
215
|
-
Tai_Tham,
|
216
|
-
Tai_Viet,
|
217
|
-
Takri,
|
218
|
-
Tamil,
|
219
|
-
Telugu,
|
220
|
-
Thaana,
|
221
|
-
Thai,
|
222
|
-
Tibetan,
|
223
|
-
Tifinagh,
|
224
|
-
Ugaritic,
|
225
|
-
Vai,
|
226
|
-
Yi.
|
227
|
-
.
|
228
|
-
.
|
229
|
-
.SH "CHARACTER CLASSES"
|
230
|
-
.rs
|
231
|
-
.sp
|
232
|
-
[...] positive character class
|
233
|
-
[^...] negative character class
|
234
|
-
[x-y] range (can be used for hex characters)
|
235
|
-
[[:xxx:]] positive POSIX named set
|
236
|
-
[[:^xxx:]] negative POSIX named set
|
237
|
-
.sp
|
238
|
-
alnum alphanumeric
|
239
|
-
alpha alphabetic
|
240
|
-
ascii 0-127
|
241
|
-
blank space or tab
|
242
|
-
cntrl control character
|
243
|
-
digit decimal digit
|
244
|
-
graph printing, excluding space
|
245
|
-
lower lower case letter
|
246
|
-
print printing, including space
|
247
|
-
punct printing, excluding alphanumeric
|
248
|
-
space white space
|
249
|
-
upper upper case letter
|
250
|
-
word same as \ew
|
251
|
-
xdigit hexadecimal digit
|
252
|
-
.sp
|
253
|
-
In PCRE, POSIX character set names recognize only ASCII characters by default,
|
254
|
-
but some of them use Unicode properties if PCRE_UCP is set. You can use
|
255
|
-
\eQ...\eE inside a character class.
|
256
|
-
.
|
257
|
-
.
|
258
|
-
.SH "QUANTIFIERS"
|
259
|
-
.rs
|
260
|
-
.sp
|
261
|
-
? 0 or 1, greedy
|
262
|
-
?+ 0 or 1, possessive
|
263
|
-
?? 0 or 1, lazy
|
264
|
-
* 0 or more, greedy
|
265
|
-
*+ 0 or more, possessive
|
266
|
-
*? 0 or more, lazy
|
267
|
-
+ 1 or more, greedy
|
268
|
-
++ 1 or more, possessive
|
269
|
-
+? 1 or more, lazy
|
270
|
-
{n} exactly n
|
271
|
-
{n,m} at least n, no more than m, greedy
|
272
|
-
{n,m}+ at least n, no more than m, possessive
|
273
|
-
{n,m}? at least n, no more than m, lazy
|
274
|
-
{n,} n or more, greedy
|
275
|
-
{n,}+ n or more, possessive
|
276
|
-
{n,}? n or more, lazy
|
277
|
-
.
|
278
|
-
.
|
279
|
-
.SH "ANCHORS AND SIMPLE ASSERTIONS"
|
280
|
-
.rs
|
281
|
-
.sp
|
282
|
-
\eb word boundary
|
283
|
-
\eB not a word boundary
|
284
|
-
^ start of subject
|
285
|
-
also after internal newline in multiline mode
|
286
|
-
\eA start of subject
|
287
|
-
$ end of subject
|
288
|
-
also before newline at end of subject
|
289
|
-
also before internal newline in multiline mode
|
290
|
-
\eZ end of subject
|
291
|
-
also before newline at end of subject
|
292
|
-
\ez end of subject
|
293
|
-
\eG first matching position in subject
|
294
|
-
.
|
295
|
-
.
|
296
|
-
.SH "MATCH POINT RESET"
|
297
|
-
.rs
|
298
|
-
.sp
|
299
|
-
\eK reset start of match
|
300
|
-
.
|
301
|
-
.
|
302
|
-
.SH "ALTERNATION"
|
303
|
-
.rs
|
304
|
-
.sp
|
305
|
-
expr|expr|expr...
|
306
|
-
.
|
307
|
-
.
|
308
|
-
.SH "CAPTURING"
|
309
|
-
.rs
|
310
|
-
.sp
|
311
|
-
(...) capturing group
|
312
|
-
(?<name>...) named capturing group (Perl)
|
313
|
-
(?'name'...) named capturing group (Perl)
|
314
|
-
(?P<name>...) named capturing group (Python)
|
315
|
-
(?:...) non-capturing group
|
316
|
-
(?|...) non-capturing group; reset group numbers for
|
317
|
-
capturing groups in each alternative
|
318
|
-
.
|
319
|
-
.
|
320
|
-
.SH "ATOMIC GROUPS"
|
321
|
-
.rs
|
322
|
-
.sp
|
323
|
-
(?>...) atomic, non-capturing group
|
324
|
-
.
|
325
|
-
.
|
326
|
-
.
|
327
|
-
.
|
328
|
-
.SH "COMMENT"
|
329
|
-
.rs
|
330
|
-
.sp
|
331
|
-
(?#....) comment (not nestable)
|
332
|
-
.
|
333
|
-
.
|
334
|
-
.SH "OPTION SETTING"
|
335
|
-
.rs
|
336
|
-
.sp
|
337
|
-
(?i) caseless
|
338
|
-
(?J) allow duplicate names
|
339
|
-
(?m) multiline
|
340
|
-
(?s) single line (dotall)
|
341
|
-
(?U) default ungreedy (lazy)
|
342
|
-
(?x) extended (ignore white space)
|
343
|
-
(?-...) unset option(s)
|
344
|
-
.sp
|
345
|
-
The following are recognized only at the start of a pattern or after one of the
|
346
|
-
newline-setting options with similar syntax:
|
347
|
-
.sp
|
348
|
-
(*NO_START_OPT) no start-match optimization (PCRE_NO_START_OPTIMIZE)
|
349
|
-
(*UTF8) set UTF-8 mode: 8-bit library (PCRE_UTF8)
|
350
|
-
(*UTF16) set UTF-16 mode: 16-bit library (PCRE_UTF16)
|
351
|
-
(*UTF32) set UTF-32 mode: 32-bit library (PCRE_UTF32)
|
352
|
-
(*UTF) set appropriate UTF mode for the library in use
|
353
|
-
(*UCP) set PCRE_UCP (use Unicode properties for \ed etc)
|
354
|
-
.
|
355
|
-
.
|
356
|
-
.SH "LOOKAHEAD AND LOOKBEHIND ASSERTIONS"
|
357
|
-
.rs
|
358
|
-
.sp
|
359
|
-
(?=...) positive look ahead
|
360
|
-
(?!...) negative look ahead
|
361
|
-
(?<=...) positive look behind
|
362
|
-
(?<!...) negative look behind
|
363
|
-
.sp
|
364
|
-
Each top-level branch of a look behind must be of a fixed length.
|
365
|
-
.
|
366
|
-
.
|
367
|
-
.SH "BACKREFERENCES"
|
368
|
-
.rs
|
369
|
-
.sp
|
370
|
-
\en reference by number (can be ambiguous)
|
371
|
-
\egn reference by number
|
372
|
-
\eg{n} reference by number
|
373
|
-
\eg{-n} relative reference by number
|
374
|
-
\ek<name> reference by name (Perl)
|
375
|
-
\ek'name' reference by name (Perl)
|
376
|
-
\eg{name} reference by name (Perl)
|
377
|
-
\ek{name} reference by name (.NET)
|
378
|
-
(?P=name) reference by name (Python)
|
379
|
-
.
|
380
|
-
.
|
381
|
-
.SH "SUBROUTINE REFERENCES (POSSIBLY RECURSIVE)"
|
382
|
-
.rs
|
383
|
-
.sp
|
384
|
-
(?R) recurse whole pattern
|
385
|
-
(?n) call subpattern by absolute number
|
386
|
-
(?+n) call subpattern by relative number
|
387
|
-
(?-n) call subpattern by relative number
|
388
|
-
(?&name) call subpattern by name (Perl)
|
389
|
-
(?P>name) call subpattern by name (Python)
|
390
|
-
\eg<name> call subpattern by name (Oniguruma)
|
391
|
-
\eg'name' call subpattern by name (Oniguruma)
|
392
|
-
\eg<n> call subpattern by absolute number (Oniguruma)
|
393
|
-
\eg'n' call subpattern by absolute number (Oniguruma)
|
394
|
-
\eg<+n> call subpattern by relative number (PCRE extension)
|
395
|
-
\eg'+n' call subpattern by relative number (PCRE extension)
|
396
|
-
\eg<-n> call subpattern by relative number (PCRE extension)
|
397
|
-
\eg'-n' call subpattern by relative number (PCRE extension)
|
398
|
-
.
|
399
|
-
.
|
400
|
-
.SH "CONDITIONAL PATTERNS"
|
401
|
-
.rs
|
402
|
-
.sp
|
403
|
-
(?(condition)yes-pattern)
|
404
|
-
(?(condition)yes-pattern|no-pattern)
|
405
|
-
.sp
|
406
|
-
(?(n)... absolute reference condition
|
407
|
-
(?(+n)... relative reference condition
|
408
|
-
(?(-n)... relative reference condition
|
409
|
-
(?(<name>)... named reference condition (Perl)
|
410
|
-
(?('name')... named reference condition (Perl)
|
411
|
-
(?(name)... named reference condition (PCRE)
|
412
|
-
(?(R)... overall recursion condition
|
413
|
-
(?(Rn)... specific group recursion condition
|
414
|
-
(?(R&name)... specific recursion condition
|
415
|
-
(?(DEFINE)... define subpattern for reference
|
416
|
-
(?(assert)... assertion condition
|
417
|
-
.
|
418
|
-
.
|
419
|
-
.SH "BACKTRACKING CONTROL"
|
420
|
-
.rs
|
421
|
-
.sp
|
422
|
-
The following act immediately they are reached:
|
423
|
-
.sp
|
424
|
-
(*ACCEPT) force successful match
|
425
|
-
(*FAIL) force backtrack; synonym (*F)
|
426
|
-
(*MARK:NAME) set name to be passed back; synonym (*:NAME)
|
427
|
-
.sp
|
428
|
-
The following act only when a subsequent match failure causes a backtrack to
|
429
|
-
reach them. They all force a match failure, but they differ in what happens
|
430
|
-
afterwards. Those that advance the start-of-match point do so only if the
|
431
|
-
pattern is not anchored.
|
432
|
-
.sp
|
433
|
-
(*COMMIT) overall failure, no advance of starting point
|
434
|
-
(*PRUNE) advance to next starting character
|
435
|
-
(*PRUNE:NAME) equivalent to (*MARK:NAME)(*PRUNE)
|
436
|
-
(*SKIP) advance to current matching position
|
437
|
-
(*SKIP:NAME) advance to position corresponding to an earlier
|
438
|
-
(*MARK:NAME); if not found, the (*SKIP) is ignored
|
439
|
-
(*THEN) local failure, backtrack to next alternation
|
440
|
-
(*THEN:NAME) equivalent to (*MARK:NAME)(*THEN)
|
441
|
-
.
|
442
|
-
.
|
443
|
-
.SH "NEWLINE CONVENTIONS"
|
444
|
-
.rs
|
445
|
-
.sp
|
446
|
-
These are recognized only at the very start of the pattern or after a
|
447
|
-
(*BSR_...), (*UTF8), (*UTF16), (*UTF32) or (*UCP) option.
|
448
|
-
.sp
|
449
|
-
(*CR) carriage return only
|
450
|
-
(*LF) linefeed only
|
451
|
-
(*CRLF) carriage return followed by linefeed
|
452
|
-
(*ANYCRLF) all three of the above
|
453
|
-
(*ANY) any Unicode newline sequence
|
454
|
-
.
|
455
|
-
.
|
456
|
-
.SH "WHAT \eR MATCHES"
|
457
|
-
.rs
|
458
|
-
.sp
|
459
|
-
These are recognized only at the very start of the pattern or after a
|
460
|
-
(*...) option that sets the newline convention or a UTF or UCP mode.
|
461
|
-
.sp
|
462
|
-
(*BSR_ANYCRLF) CR, LF, or CRLF
|
463
|
-
(*BSR_UNICODE) any Unicode newline sequence
|
464
|
-
.
|
465
|
-
.
|
466
|
-
.SH "CALLOUTS"
|
467
|
-
.rs
|
468
|
-
.sp
|
469
|
-
(?C) callout
|
470
|
-
(?Cn) callout with data n
|
471
|
-
.
|
472
|
-
.
|
473
|
-
.SH "SEE ALSO"
|
474
|
-
.rs
|
475
|
-
.sp
|
476
|
-
\fBpcrepattern\fP(3), \fBpcreapi\fP(3), \fBpcrecallout\fP(3),
|
477
|
-
\fBpcrematching\fP(3), \fBpcre\fP(3).
|
478
|
-
.
|
479
|
-
.
|
480
|
-
.SH AUTHOR
|
481
|
-
.rs
|
482
|
-
.sp
|
483
|
-
.nf
|
484
|
-
Philip Hazel
|
485
|
-
University Computing Service
|
486
|
-
Cambridge CB2 3QH, England.
|
487
|
-
.fi
|
488
|
-
.
|
489
|
-
.
|
490
|
-
.SH REVISION
|
491
|
-
.rs
|
492
|
-
.sp
|
493
|
-
.nf
|
494
|
-
Last updated: 11 November 2012
|
495
|
-
Copyright (c) 1997-2012 University of Cambridge.
|
496
|
-
.fi
|