1#pattern framesize, memory 2 3/abcd/ 4 abcd\=memory 5 abcd\=find_limits 6 7/(((((((((((((((((((((((((((((( (^abc|xyz){1,20}$ ))))))))))))))))))))))))))))))/x 8 abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=memory 9 abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=find_limits 10 11/ab(cd)/ 12 abcd\=memory 13 abcd\=memory,ovector=0 14 15/\[(a)]{1000}/expand,framesize 16 \[a]{1000}\=ovector=1 17 18# The heapframes_size option gets pcre2test to show the size of the heapframes 19# vector that after pcre2_match() has run. Running a match with ovector=0 20# causes the match data block to be freed, thus releasing that vector. 21 22/\[(a)]{1000}/expand,framesize 23 \[a]{1000}\=ovector=1,heapframes_size 24 25/a/heapframes_size,framesize 26 a\=ovector=0 27 28/a|(b){200}/g,expand,heapframes_size 29 abacus z\[b]{200}z 30 a\=ovector=0 31 32/(a)/replace=>$1< 33 cat\=heapframes_size 34 35# End 36