@@ -22102,33 +22102,33 @@ Failed: error -69: error performing replacement case transformation
2210222102
2210322103# Parse error tests
2210422104
22105- /(?1: /
22106- Failed: error 218 at offset 4 : missing opening parenthesis
22105+ /(?1/
22106+ Failed: error 114 at offset 3 : missing closing parenthesis
2210722107
22108- /(?1:1 /
22109- Failed: error 218 at offset 4: missing opening parenthesis
22108+ /(?1( /
22109+ Failed: error 217 at offset 4: expected capture group number or name
2211022110
22111- /(?R: (1/
22112- Failed: error 114 at offset 6 : missing closing parenthesis
22111+ /(?R(1/
22112+ Failed: error 114 at offset 5 : missing closing parenthesis
2211322113
22114- /(?R: (1,/
22115- Failed: error 217 at offset 7 : expected capture group number or name
22114+ /(?R(1,/
22115+ Failed: error 217 at offset 6 : expected capture group number or name
2211622116
22117- /(?R0: (1,2!/
22117+ /(?R0(1,2!/
2211822118Failed: error 158 at offset 3: (?R (recursive pattern call) must be followed by a closing parenthesis
2211922119
22120- /(?1:(1,0))()/
22121- Failed: error 115 at offset 8: reference to non-existent subpattern
22122-
22123- /(?1:(1,+2))()/
22120+ /(?1(1,0))()/
2212422121Failed: error 115 at offset 7: reference to non-existent subpattern
2212522122
22126- /(?1:(<name>))/
22123+ /(?1(1,+2))()/
22124+ Failed: error 115 at offset 6: reference to non-existent subpattern
22125+
22126+ /(?1(<name>))/
2212722127Failed: error 115 at offset 3: reference to non-existent subpattern
2212822128
2212922129# Operation tests
2213022130
22131- /^(?1: (2))\2(?(DEFINE)(a(.)b(.)c))/B
22131+ /^(?1(2))\2(?(DEFINE)(a(.)b(.)c))/B
2213222132------------------------------------------------------------------
2213322133 Bra
2213422134 ^
@@ -22162,7 +22162,7 @@ No match
2216222162 axbycy
2216322163No match
2216422164
22165- /^((.)(?<id>.))(?1: ('id'))(.)/B
22165+ /^((.)(?<id>.))(?1('id'))(.)/B
2216622166------------------------------------------------------------------
2216722167 Bra
2216822168 ^
@@ -22189,7 +22189,7 @@ No match
2218922189 3: d
2219022190 4: e
2219122191
22192- /^(?1: (3,2,2,3,2))(?1: (3))(?(DEFINE)(a(.)b(.)c))/B
22192+ /^(?1(3,2,2,3,2))(?1(3))(?(DEFINE)(a(.)b(.)c))/B
2219322193------------------------------------------------------------------
2219422194 Bra
2219522195 ^
@@ -22221,7 +22221,7 @@ No match
2222122221 2: 1
2222222222 3: g
2222322223
22224- /(?1: (2))#(?1: (3))#(?1: (4))#(?(DEFINE)((.)\2(.)\3(.)\4))/
22224+ /(?1(2))#(?1(3))#(?1(4))#(?(DEFINE)((.)\2(.)\3(.)\4))/
2222522225 aabbcc#ddeeff#gghhii!aabbcc#ddeeff#gghhii#
2222622226 0: aabbcc#ddeeff#gghhii#
2222722227 1: <unset>
@@ -22232,7 +22232,7 @@ No match
2223222232 aabbcc#ddeeff#gghhii
2223322233No match
2223422234
22235- /^(?1: (1,2)){2,4}(?(DEFINE)((..)#))xx#/B
22235+ /^(?1(1,2)){2,4}(?(DEFINE)((..)#))xx#/B
2223622236------------------------------------------------------------------
2223722237 Bra
2223822238 ^
@@ -22288,7 +22288,7 @@ No match
2228822288 aa#bb#cc#dd#ee#xx#
2228922289No match
2229022290
22291- /^(?1: (1,2)){2,}+(?(DEFINE)((..)#))!/B
22291+ /^(?1(1,2)){2,}+(?(DEFINE)((..)#))!/B
2229222292------------------------------------------------------------------
2229322293 Bra
2229422294 ^
@@ -22332,15 +22332,15 @@ No match
2233222332 aa#bb#cc#dd#ee#
2233322333No match
2233422334
22335- /^(?1)(?(DEFINE)(<(?2: (3,4))><\4\3>)((..)(..)))/
22335+ /^(?1)(?(DEFINE)(<(?2(3,4))><\4\3>)((..)(..)))/
2233622336 <abcd><cdab>
2233722337 0: <abcd><cdab>
2233822338
2233922339/(?1)#(?(DEFINE)(a(.(*ACCEPT).)b))/
2234022340 #axyb#axax#
2234122341 0: ax#
2234222342
22343- /^(?>(?1: (<n>)))!(?(DEFINE)((?<n>..)(?<n>..)))|abcde/dupnames
22343+ /^(?>(?1(<n>)))!(?(DEFINE)((?<n>..)(?<n>..)))|abcde/dupnames
2234422344 abcd!
2234522345 0: abcd!
2234622346 1: <unset>
@@ -22349,7 +22349,7 @@ No match
2234922349 abcde
2235022350 0: abcde
2235122351
22352- /<(?:[^<>]*?(?:(AB)[^<>]*|)(?:|(?R: (1))))+>/
22352+ /<(?:[^<>]*?(?:(AB)[^<>]*|)(?:|(?R(1))))+>/
2235322353 <aa<bb>cc<dd>ee>
2235422354 0: <aa<bb>cc<dd>ee>
2235522355 <aa<bb<cc>dd>ee<ff<gg>hh>ii>
@@ -22372,7 +22372,7 @@ No match
2237222372 0: <aa<bb<cc>dd>ee<ff<gg>hABhABh>ii>
2237322373 1: AB
2237422374
22375- /(?:(?1: (<prefix>))#){4}(?(DEFINE)((?(<prefix>)\2)(?<prefix>.{3})))$/
22375+ /(?:(?1(<prefix>))#){4}(?(DEFINE)((?(<prefix>)\2)(?<prefix>.{3})))$/
2237622376 abc#abcdef#defghi#ghijkl#
2237722377 0: abc#abcdef#defghi#ghijkl#
2237822378 1: <unset>
0 commit comments