2015-08-18 06:34:05 -04:00
|
|
|
# These are:
|
|
|
|
#
|
|
|
|
# (1) Tests of the match-limiting features. The results are different for
|
|
|
|
# interpretive or JIT matching, so this test should not be run with JIT. The
|
|
|
|
# same tests are run using JIT in test 17.
|
2014-08-08 14:18:18 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
# (2) Other tests that must not be run with JIT.
|
|
|
|
|
|
|
|
/(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 7
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 7
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazz
|
|
|
|
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
aaaaaaaaaaaaaz\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 20481
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 30
|
2015-08-18 06:34:05 -04:00
|
|
|
No match
|
|
|
|
|
|
|
|
!((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)!I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
May match empty string
|
|
|
|
Subject length lower bound = 0
|
|
|
|
/* this is a C style comment */\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 64
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 7
|
2015-08-18 06:34:05 -04:00
|
|
|
0: /* this is a C style comment */
|
|
|
|
1: /* this is a C style comment */
|
|
|
|
|
|
|
|
/^(?>a)++/
|
|
|
|
aa\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
Minimum match limit = 5
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aa
|
|
|
|
aaaaaaaaa\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
Minimum match limit = 12
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aaaaaaaaa
|
2019-06-26 04:23:47 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/(a)(?1)++/
|
|
|
|
aa\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
Minimum match limit = 7
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 5
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aa
|
|
|
|
1: a
|
|
|
|
aaaaaaaaa\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
Minimum match limit = 21
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 5
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aaaaaaaaa
|
|
|
|
1: a
|
|
|
|
|
|
|
|
/a(?:.)*?a/ims
|
|
|
|
abbbbbbbbbbbbbbbbbbbbba\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 24
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
0: abbbbbbbbbbbbbbbbbbbbba
|
2019-06-26 04:23:47 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/a(?:.(*THEN))*?a/ims
|
|
|
|
abbbbbbbbbbbbbbbbbbbbba\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 66
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 45
|
2015-08-18 06:34:05 -04:00
|
|
|
0: abbbbbbbbbbbbbbbbbbbbba
|
|
|
|
|
|
|
|
/a(?:.(*THEN:ABC))*?a/ims
|
|
|
|
abbbbbbbbbbbbbbbbbbbbba\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 66
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 45
|
2015-08-18 06:34:05 -04:00
|
|
|
0: abbbbbbbbbbbbbbbbbbbbba
|
|
|
|
|
|
|
|
/^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
|
|
|
|
aabbccddee\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
Minimum match limit = 7
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 7
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aabbccddee
|
|
|
|
|
|
|
|
/^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
|
|
|
|
aabbccddee\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 12
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 12
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aabbccddee
|
|
|
|
1: aa
|
|
|
|
2: bb
|
|
|
|
3: cc
|
|
|
|
4: dd
|
|
|
|
5: ee
|
|
|
|
|
|
|
|
/^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
|
|
|
|
aabbccddee\=find_limits
|
2017-04-11 07:47:25 -04:00
|
|
|
Minimum heap limit = 0
|
2017-03-09 11:23:28 -05:00
|
|
|
Minimum match limit = 10
|
2017-03-12 09:47:01 -04:00
|
|
|
Minimum depth limit = 10
|
2015-08-18 06:34:05 -04:00
|
|
|
0: aabbccddee
|
|
|
|
1: aa
|
|
|
|
2: cc
|
|
|
|
3: ee
|
|
|
|
|
|
|
|
/(*LIMIT_MATCH=12bc)abc/
|
|
|
|
Failed: error 160 at offset 17: (*VERB) not recognized or malformed
|
|
|
|
|
|
|
|
/(*LIMIT_MATCH=4294967290)abc/
|
|
|
|
Failed: error 160 at offset 24: (*VERB) not recognized or malformed
|
|
|
|
|
2017-03-12 09:47:01 -04:00
|
|
|
/(*LIMIT_DEPTH=4294967280)abc/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 0
|
2017-03-12 09:47:01 -04:00
|
|
|
Depth limit = 4294967280
|
2014-08-08 14:18:18 -04:00
|
|
|
First code unit = 'a'
|
2014-10-06 13:28:42 -04:00
|
|
|
Last code unit = 'c'
|
2014-08-08 14:18:18 -04:00
|
|
|
Subject length lower bound = 3
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/(a+)*zz/
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
No match
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz\=match_limit=3000
|
|
|
|
Failed: error -47: match limit exceeded
|
|
|
|
|
|
|
|
/(a+)*zz/
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2017-03-12 09:47:01 -04:00
|
|
|
aaaaaaaaaaaaaz\=depth_limit=10
|
|
|
|
Failed: error -53: matching depth limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
|
|
|
|
/(*LIMIT_MATCH=3000)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
Match limit = 3000
|
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
Failed: error -47: match limit exceeded
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz\=match_limit=60000
|
|
|
|
Failed: error -47: match limit exceeded
|
|
|
|
|
|
|
|
/(*LIMIT_MATCH=60000)(*LIMIT_MATCH=3000)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
Match limit = 3000
|
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
Failed: error -47: match limit exceeded
|
|
|
|
|
|
|
|
/(*LIMIT_MATCH=60000)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
Match limit = 60000
|
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
No match
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz\=match_limit=3000
|
|
|
|
Failed: error -47: match limit exceeded
|
|
|
|
|
2017-03-12 09:47:01 -04:00
|
|
|
/(*LIMIT_DEPTH=10)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2017-03-12 09:47:01 -04:00
|
|
|
Depth limit = 10
|
2015-08-18 06:34:05 -04:00
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
2017-03-12 09:47:01 -04:00
|
|
|
Failed: error -53: matching depth limit exceeded
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2017-03-12 09:47:01 -04:00
|
|
|
aaaaaaaaaaaaaz\=depth_limit=1000
|
|
|
|
Failed: error -53: matching depth limit exceeded
|
2015-08-18 06:34:05 -04:00
|
|
|
|
2017-03-12 09:47:01 -04:00
|
|
|
/(*LIMIT_DEPTH=10)(*LIMIT_DEPTH=1000)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2017-03-12 09:47:01 -04:00
|
|
|
Depth limit = 1000
|
2015-08-18 06:34:05 -04:00
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
No match
|
|
|
|
|
2017-03-12 09:47:01 -04:00
|
|
|
/(*LIMIT_DEPTH=1000)(a+)*zz/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2017-03-12 09:47:01 -04:00
|
|
|
Depth limit = 1000
|
2015-08-18 06:34:05 -04:00
|
|
|
Starting code units: a z
|
|
|
|
Last code unit = 'z'
|
|
|
|
Subject length lower bound = 2
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaaaaaaaaaaaz
|
|
|
|
No match
|
2018-04-29 11:07:44 -04:00
|
|
|
\= Expect limit exceeded
|
2017-03-12 09:47:01 -04:00
|
|
|
aaaaaaaaaaaaaz\=depth_limit=10
|
|
|
|
Failed: error -53: matching depth limit exceeded
|
2019-06-26 04:23:47 -04:00
|
|
|
|
|
|
|
# These three have infinitely nested recursions.
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/((?2))((?1))/
|
|
|
|
abc
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
2016-10-02 12:01:01 -04:00
|
|
|
/((?(R2)a+|(?1)b))()/
|
2015-08-18 06:34:05 -04:00
|
|
|
aaaabcde
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(?(R)a*(?1)|((?R))b)/
|
|
|
|
aaaabcde
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
2019-06-26 04:23:47 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
# The allusedtext modifier does not work with JIT, which does not maintain
|
|
|
|
# the leftchar/rightchar data.
|
|
|
|
|
|
|
|
/abc(?=xyz)/allusedtext
|
|
|
|
abcxyzpqr
|
|
|
|
0: abcxyz
|
|
|
|
>>>
|
|
|
|
abcxyzpqr\=aftertext
|
|
|
|
0: abcxyz
|
|
|
|
>>>
|
|
|
|
0+ xyzpqr
|
2019-06-26 04:23:47 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/(?<=pqr)abc(?=xyz)/allusedtext
|
|
|
|
xyzpqrabcxyzpqr
|
|
|
|
0: pqrabcxyz
|
|
|
|
<<< >>>
|
|
|
|
xyzpqrabcxyzpqr\=aftertext
|
|
|
|
0: pqrabcxyz
|
|
|
|
<<< >>>
|
|
|
|
0+ xyzpqr
|
2019-06-26 04:23:47 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/a\b/
|
|
|
|
a.\=allusedtext
|
|
|
|
0: a.
|
|
|
|
>
|
2019-06-26 04:23:47 -04:00
|
|
|
a\=allusedtext
|
2015-08-18 06:34:05 -04:00
|
|
|
0: a
|
|
|
|
|
|
|
|
/abc\Kxyz/
|
|
|
|
abcxyz\=allusedtext
|
|
|
|
0: abcxyz
|
|
|
|
<<<
|
|
|
|
|
|
|
|
/abc(?=xyz(*ACCEPT))/
|
|
|
|
abcxyz\=allusedtext
|
|
|
|
0: abcxyz
|
|
|
|
>>>
|
|
|
|
|
|
|
|
/abc(?=abcde)(?=ab)/allusedtext
|
|
|
|
abcabcdefg
|
|
|
|
0: abcabcde
|
|
|
|
>>>>>
|
2019-06-26 04:23:47 -04:00
|
|
|
|
|
|
|
#subject allusedtext
|
|
|
|
|
|
|
|
/(?<=abc)123/
|
|
|
|
xyzabc123pqr
|
|
|
|
0: abc123
|
|
|
|
<<<
|
|
|
|
xyzabc12\=ps
|
|
|
|
Partial match: abc12
|
|
|
|
<<<
|
|
|
|
xyzabc12\=ph
|
|
|
|
Partial match: abc12
|
|
|
|
<<<
|
|
|
|
|
|
|
|
/\babc\b/
|
|
|
|
+++abc+++
|
|
|
|
0: +abc+
|
|
|
|
< >
|
|
|
|
+++ab\=ps
|
|
|
|
Partial match: +ab
|
|
|
|
<
|
|
|
|
+++ab\=ph
|
|
|
|
Partial match: +ab
|
|
|
|
<
|
|
|
|
|
|
|
|
/(?<=abc)def/
|
|
|
|
abc\=ph
|
|
|
|
Partial match: abc
|
|
|
|
<<<
|
|
|
|
|
|
|
|
/(?<=123)(*MARK:xx)abc/mark
|
|
|
|
xxxx123a\=ph
|
|
|
|
Partial match, mark=xx: 123a
|
|
|
|
<<<
|
|
|
|
xxxx123a\=ps
|
|
|
|
Partial match, mark=xx: 123a
|
|
|
|
<<<
|
|
|
|
|
|
|
|
/(?<=(?<=a)b)c.*/I
|
|
|
|
Capture group count = 0
|
2019-09-04 14:14:54 -04:00
|
|
|
Max lookbehind = 1
|
2019-06-26 04:23:47 -04:00
|
|
|
First code unit = 'c'
|
|
|
|
Subject length lower bound = 1
|
|
|
|
abc\=ph
|
|
|
|
Partial match: abc
|
|
|
|
<<
|
|
|
|
\= Expect no match
|
|
|
|
xbc\=ph
|
|
|
|
No match
|
|
|
|
|
|
|
|
/(?<=ab)c.*/I
|
|
|
|
Capture group count = 0
|
|
|
|
Max lookbehind = 2
|
|
|
|
First code unit = 'c'
|
|
|
|
Subject length lower bound = 1
|
|
|
|
abc\=ph
|
|
|
|
Partial match: abc
|
|
|
|
<<
|
|
|
|
\= Expect no match
|
|
|
|
xbc\=ph
|
|
|
|
No match
|
|
|
|
|
|
|
|
/abc(?<=bc)def/
|
|
|
|
xxxabcd\=ph
|
|
|
|
Partial match: abcd
|
|
|
|
|
|
|
|
/(?<=ab)cdef/
|
|
|
|
xxabcd\=ph
|
|
|
|
Partial match: abcd
|
|
|
|
<<
|
|
|
|
|
2019-06-28 12:58:08 -04:00
|
|
|
/(?<=(?<=(?<=a)b)c)./I
|
|
|
|
Capture group count = 0
|
2019-09-04 14:14:54 -04:00
|
|
|
Max lookbehind = 1
|
2019-06-28 12:58:08 -04:00
|
|
|
Subject length lower bound = 1
|
|
|
|
123abcXYZ
|
|
|
|
0: abcX
|
|
|
|
<<<
|
|
|
|
|
|
|
|
/(?<=ab(cd(?<=...)))./I
|
|
|
|
Capture group count = 1
|
|
|
|
Max lookbehind = 4
|
|
|
|
Subject length lower bound = 1
|
|
|
|
abcdX
|
|
|
|
0: abcdX
|
|
|
|
<<<<
|
|
|
|
1: cd
|
|
|
|
|
|
|
|
/(?<=ab((?<=...)cd))./I
|
|
|
|
Capture group count = 1
|
2019-09-04 14:14:54 -04:00
|
|
|
Max lookbehind = 4
|
2019-06-28 12:58:08 -04:00
|
|
|
Subject length lower bound = 1
|
|
|
|
ZabcdX
|
|
|
|
0: ZabcdX
|
|
|
|
<<<<<
|
|
|
|
1: cd
|
|
|
|
|
|
|
|
/(?<=((?<=(?<=ab).))(?1)(?1))./I
|
|
|
|
Capture group count = 1
|
2019-09-04 14:14:54 -04:00
|
|
|
Max lookbehind = 2
|
2019-06-28 12:58:08 -04:00
|
|
|
Subject length lower bound = 1
|
|
|
|
abxZ
|
|
|
|
0: abxZ
|
|
|
|
<<<
|
|
|
|
1:
|
|
|
|
|
2019-06-26 04:23:47 -04:00
|
|
|
#subject
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
# These tests provoke recursion loops, which give a different error message
|
|
|
|
# when JIT is used.
|
|
|
|
|
|
|
|
/(?R)/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 0
|
2014-08-08 14:18:18 -04:00
|
|
|
May match empty string
|
2014-10-06 13:28:42 -04:00
|
|
|
Subject length lower bound = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(a|(?R))/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
May match empty string
|
2015-11-11 04:42:26 -05:00
|
|
|
Subject length lower bound = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
abcd
|
|
|
|
0: a
|
|
|
|
1: a
|
2019-06-26 04:23:47 -04:00
|
|
|
defg
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(ab|(bc|(de|(?R))))/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
May match empty string
|
2015-11-11 04:42:26 -05:00
|
|
|
Subject length lower bound = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
abcd
|
|
|
|
0: ab
|
|
|
|
1: ab
|
2019-06-26 04:23:47 -04:00
|
|
|
fghi
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(ab|(bc|(de|(?1))))/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
May match empty string
|
2015-11-11 04:42:26 -05:00
|
|
|
Subject length lower bound = 0
|
2015-08-18 06:34:05 -04:00
|
|
|
abcd
|
|
|
|
0: ab
|
|
|
|
1: ab
|
2019-06-26 04:23:47 -04:00
|
|
|
fghi
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/x(ab|(bc|(de|(?1)x)x)x)/I
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 3
|
2015-08-18 06:34:05 -04:00
|
|
|
First code unit = 'x'
|
|
|
|
Subject length lower bound = 3
|
|
|
|
xab123
|
|
|
|
0: xab
|
|
|
|
1: ab
|
2019-06-26 04:23:47 -04:00
|
|
|
xfghi
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(?!\w)(?R)/
|
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
2019-06-26 04:23:47 -04:00
|
|
|
=abc
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(?=\w)(?R)/
|
2019-06-26 04:23:47 -04:00
|
|
|
=abc
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(?<!\w)(?R)/
|
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(?<=\w)(?R)/
|
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/(a+|(?R)b)/
|
|
|
|
aaa
|
|
|
|
0: aaa
|
|
|
|
1: aaa
|
2019-06-26 04:23:47 -04:00
|
|
|
bbb
|
2015-08-18 06:34:05 -04:00
|
|
|
Failed: error -52: nested recursion at the same subject position
|
|
|
|
|
|
|
|
/[^\xff]((?1))/BI
|
|
|
|
------------------------------------------------------------------
|
|
|
|
Bra
|
|
|
|
[^\x{ff}]
|
|
|
|
CBra 1
|
|
|
|
Recurse
|
|
|
|
Ket
|
|
|
|
Ket
|
|
|
|
End
|
|
|
|
------------------------------------------------------------------
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 1
|
2015-08-18 06:34:05 -04:00
|
|
|
Subject length lower bound = 1
|
|
|
|
abcd
|
|
|
|
Failed: error -52: nested recursion at the same subject position
|
2019-06-26 04:23:47 -04:00
|
|
|
|
|
|
|
# These tests don't behave the same with JIT
|
2015-11-05 13:03:16 -05:00
|
|
|
|
|
|
|
/\w+(?C1)/BI,no_auto_possess
|
|
|
|
------------------------------------------------------------------
|
|
|
|
Bra
|
|
|
|
\w+
|
|
|
|
Callout 1 8 0
|
|
|
|
Ket
|
|
|
|
End
|
|
|
|
------------------------------------------------------------------
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 0
|
2015-11-05 13:03:16 -05:00
|
|
|
Options: no_auto_possess
|
|
|
|
Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
|
|
|
|
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
|
|
|
|
Subject length lower bound = 1
|
|
|
|
abc\=callout_fail=1
|
|
|
|
--->abc
|
2017-12-22 10:56:27 -05:00
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
2015-11-05 13:03:16 -05:00
|
|
|
No match
|
|
|
|
|
|
|
|
/(*NO_AUTO_POSSESS)\w+(?C1)/BI
|
|
|
|
------------------------------------------------------------------
|
|
|
|
Bra
|
|
|
|
\w+
|
|
|
|
Callout 1 26 0
|
|
|
|
Ket
|
|
|
|
End
|
|
|
|
------------------------------------------------------------------
|
2019-02-06 13:11:36 -05:00
|
|
|
Capture group count = 0
|
2015-11-05 13:03:16 -05:00
|
|
|
Compile options: <none>
|
|
|
|
Overall options: no_auto_possess
|
|
|
|
Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
|
|
|
|
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
|
|
|
|
Subject length lower bound = 1
|
|
|
|
abc\=callout_fail=1
|
|
|
|
--->abc
|
2017-12-22 10:56:27 -05:00
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
|
|
|
1 ^ ^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
|
|
|
1 ^^ End of pattern
|
2015-11-05 13:03:16 -05:00
|
|
|
No match
|
2014-08-08 14:18:18 -04:00
|
|
|
|
2019-06-26 04:23:47 -04:00
|
|
|
# This test breaks the JIT stack limit
|
2016-12-31 08:35:31 -05:00
|
|
|
|
|
|
|
/(|]+){2,2452}/
|
|
|
|
(|]+){2,2452}
|
|
|
|
0:
|
|
|
|
1:
|
|
|
|
|
2017-04-16 09:03:30 -04:00
|
|
|
/(*LIMIT_HEAP=21)\[(a)]{60}/expand
|
|
|
|
\[a]{60}
|
|
|
|
Failed: error -63: heap limit exceeded
|
|
|
|
|
2019-08-10 07:34:50 -04:00
|
|
|
/b(?<!ax)(?!cx)/allusedtext
|
|
|
|
abc
|
|
|
|
0: abc
|
|
|
|
< >
|
|
|
|
abcz
|
|
|
|
0: abcz
|
|
|
|
< >>
|
|
|
|
|
2015-01-23 11:51:47 -05:00
|
|
|
# End of testinput15
|