testinput4 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498
  1. # This set of tests is for UTF support, including Unicode properties. The
  2. # Unicode tests are all compatible with all versions of Perl >= 5.10, but
  3. # some of the property tests may differ because of different versions of
  4. # Unicode in use by PCRE2 and Perl.
  5. # WARNING: Use only / as the pattern delimiter. Although pcre2test supports
  6. # a number of delimiters, all those other than / give problems with the
  7. # perltest.sh script.
  8. #newline_default lf anycrlf any
  9. #perltest
  10. /a.b/utf
  11. acb
  12. a\x7fb
  13. a\x{100}b
  14. \= Expect no match
  15. a\nb
  16. /a(.{3})b/utf
  17. a\x{4000}xyb
  18. a\x{4000}\x7fyb
  19. a\x{4000}\x{100}yb
  20. \= Expect no match
  21. a\x{4000}b
  22. ac\ncb
  23. /a(.*?)(.)/
  24. a\xc0\x88b
  25. /a(.*?)(.)/utf
  26. a\x{100}b
  27. /a(.*)(.)/
  28. a\xc0\x88b
  29. /a(.*)(.)/utf
  30. a\x{100}b
  31. /a(.)(.)/
  32. a\xc0\x92bcd
  33. /a(.)(.)/utf
  34. a\x{240}bcd
  35. /a(.?)(.)/
  36. a\xc0\x92bcd
  37. /a(.?)(.)/utf
  38. a\x{240}bcd
  39. /a(.??)(.)/
  40. a\xc0\x92bcd
  41. /a(.??)(.)/utf
  42. a\x{240}bcd
  43. /a(.{3})b/utf
  44. a\x{1234}xyb
  45. a\x{1234}\x{4321}yb
  46. a\x{1234}\x{4321}\x{3412}b
  47. \= Expect no match
  48. a\x{1234}b
  49. ac\ncb
  50. /a(.{3,})b/utf
  51. a\x{1234}xyb
  52. a\x{1234}\x{4321}yb
  53. a\x{1234}\x{4321}\x{3412}b
  54. axxxxbcdefghijb
  55. a\x{1234}\x{4321}\x{3412}\x{3421}b
  56. \= Expect no match
  57. a\x{1234}b
  58. /a(.{3,}?)b/utf
  59. a\x{1234}xyb
  60. a\x{1234}\x{4321}yb
  61. a\x{1234}\x{4321}\x{3412}b
  62. axxxxbcdefghijb
  63. a\x{1234}\x{4321}\x{3412}\x{3421}b
  64. \= Expect no match
  65. a\x{1234}b
  66. /a(.{3,5})b/utf
  67. a\x{1234}xyb
  68. a\x{1234}\x{4321}yb
  69. a\x{1234}\x{4321}\x{3412}b
  70. axxxxbcdefghijb
  71. a\x{1234}\x{4321}\x{3412}\x{3421}b
  72. axbxxbcdefghijb
  73. axxxxxbcdefghijb
  74. \= Expect no match
  75. a\x{1234}b
  76. axxxxxxbcdefghijb
  77. /a(.{3,5}?)b/utf
  78. a\x{1234}xyb
  79. a\x{1234}\x{4321}yb
  80. a\x{1234}\x{4321}\x{3412}b
  81. axxxxbcdefghijb
  82. a\x{1234}\x{4321}\x{3412}\x{3421}b
  83. axbxxbcdefghijb
  84. axxxxxbcdefghijb
  85. \= Expect no match
  86. a\x{1234}b
  87. axxxxxxbcdefghijb
  88. /^[a\x{c0}]/utf
  89. \= Expect no match
  90. \x{100}
  91. /(?<=aXb)cd/utf
  92. aXbcd
  93. /(?<=a\x{100}b)cd/utf
  94. a\x{100}bcd
  95. /(?<=a\x{100000}b)cd/utf
  96. a\x{100000}bcd
  97. /(?:\x{100}){3}b/utf
  98. \x{100}\x{100}\x{100}b
  99. \= Expect no match
  100. \x{100}\x{100}b
  101. /\x{ab}/utf
  102. \x{ab}
  103. \xc2\xab
  104. \= Expect no match
  105. \x00{ab}
  106. /(?<=(.))X/utf
  107. WXYZ
  108. \x{256}XYZ
  109. \= Expect no match
  110. XYZ
  111. /[^a]+/g,utf
  112. bcd
  113. \x{100}aY\x{256}Z
  114. /^[^a]{2}/utf
  115. \x{100}bc
  116. /^[^a]{2,}/utf
  117. \x{100}bcAa
  118. /^[^a]{2,}?/utf
  119. \x{100}bca
  120. /[^a]+/gi,utf
  121. bcd
  122. \x{100}aY\x{256}Z
  123. /^[^a]{2}/i,utf
  124. \x{100}bc
  125. /^[^a]{2,}/i,utf
  126. \x{100}bcAa
  127. /^[^a]{2,}?/i,utf
  128. \x{100}bca
  129. /\x{100}{0,0}/utf
  130. abcd
  131. /\x{100}?/utf
  132. abcd
  133. \x{100}\x{100}
  134. /\x{100}{0,3}/utf
  135. \x{100}\x{100}
  136. \x{100}\x{100}\x{100}\x{100}
  137. /\x{100}*/utf
  138. abce
  139. \x{100}\x{100}\x{100}\x{100}
  140. /\x{100}{1,1}/utf
  141. abcd\x{100}\x{100}\x{100}\x{100}
  142. /\x{100}{1,3}/utf
  143. abcd\x{100}\x{100}\x{100}\x{100}
  144. /\x{100}+/utf
  145. abcd\x{100}\x{100}\x{100}\x{100}
  146. /\x{100}{3}/utf
  147. abcd\x{100}\x{100}\x{100}XX
  148. /\x{100}{3,5}/utf
  149. abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  150. /\x{100}{3,}/utf
  151. abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  152. /(?<=a\x{100}{2}b)X/utf,aftertext
  153. Xyyya\x{100}\x{100}bXzzz
  154. /\D*/utf
  155. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  156. /\D*/utf
  157. \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
  158. /\D/utf
  159. 1X2
  160. 1\x{100}2
  161. />\S/utf
  162. > >X Y
  163. > >\x{100} Y
  164. /\d/utf
  165. \x{100}3
  166. /\s/utf
  167. \x{100} X
  168. /\D+/utf
  169. 12abcd34
  170. \= Expect no match
  171. 1234
  172. /\D{2,3}/utf
  173. 12abcd34
  174. 12ab34
  175. \= Expect no match
  176. 1234
  177. 12a34
  178. /\D{2,3}?/utf
  179. 12abcd34
  180. 12ab34
  181. \= Expect no match
  182. 1234
  183. 12a34
  184. /\d+/utf
  185. 12abcd34
  186. /\d{2,3}/utf
  187. 12abcd34
  188. 1234abcd
  189. \= Expect no match
  190. 1.4
  191. /\d{2,3}?/utf
  192. 12abcd34
  193. 1234abcd
  194. \= Expect no match
  195. 1.4
  196. /\S+/utf
  197. 12abcd34
  198. \= Expect no match
  199. \ \
  200. /\S{2,3}/utf
  201. 12abcd34
  202. 1234abcd
  203. \= Expect no match
  204. \ \
  205. /\S{2,3}?/utf
  206. 12abcd34
  207. 1234abcd
  208. \= Expect no match
  209. \ \
  210. />\s+</utf,aftertext
  211. 12> <34
  212. />\s{2,3}</utf,aftertext
  213. ab> <cd
  214. ab> <ce
  215. \= Expect no match
  216. ab> <cd
  217. />\s{2,3}?</utf,aftertext
  218. ab> <cd
  219. ab> <ce
  220. \= Expect no match
  221. ab> <cd
  222. /\w+/utf
  223. 12 34
  224. \= Expect no match
  225. +++=*!
  226. /\w{2,3}/utf
  227. ab cd
  228. abcd ce
  229. \= Expect no match
  230. a.b.c
  231. /\w{2,3}?/utf
  232. ab cd
  233. abcd ce
  234. \= Expect no match
  235. a.b.c
  236. /\W+/utf
  237. 12====34
  238. \= Expect no match
  239. abcd
  240. /\W{2,3}/utf
  241. ab====cd
  242. ab==cd
  243. \= Expect no match
  244. a.b.c
  245. /\W{2,3}?/utf
  246. ab====cd
  247. ab==cd
  248. \= Expect no match
  249. a.b.c
  250. /[\x{100}]/utf
  251. \x{100}
  252. Z\x{100}
  253. \x{100}Z
  254. /[Z\x{100}]/utf
  255. Z\x{100}
  256. \x{100}
  257. \x{100}Z
  258. /[\x{100}\x{200}]/utf
  259. ab\x{100}cd
  260. ab\x{200}cd
  261. /[\x{100}-\x{200}]/utf
  262. ab\x{100}cd
  263. ab\x{200}cd
  264. ab\x{111}cd
  265. /[z-\x{200}]/utf
  266. ab\x{100}cd
  267. ab\x{200}cd
  268. ab\x{111}cd
  269. abzcd
  270. ab|cd
  271. /[Q\x{100}\x{200}]/utf
  272. ab\x{100}cd
  273. ab\x{200}cd
  274. Q?
  275. /[Q\x{100}-\x{200}]/utf
  276. ab\x{100}cd
  277. ab\x{200}cd
  278. ab\x{111}cd
  279. Q?
  280. /[Qz-\x{200}]/utf
  281. ab\x{100}cd
  282. ab\x{200}cd
  283. ab\x{111}cd
  284. abzcd
  285. ab|cd
  286. Q?
  287. /[\x{100}\x{200}]{1,3}/utf
  288. ab\x{100}cd
  289. ab\x{200}cd
  290. ab\x{200}\x{100}\x{200}\x{100}cd
  291. /[\x{100}\x{200}]{1,3}?/utf
  292. ab\x{100}cd
  293. ab\x{200}cd
  294. ab\x{200}\x{100}\x{200}\x{100}cd
  295. /[Q\x{100}\x{200}]{1,3}/utf
  296. ab\x{100}cd
  297. ab\x{200}cd
  298. ab\x{200}\x{100}\x{200}\x{100}cd
  299. /[Q\x{100}\x{200}]{1,3}?/utf
  300. ab\x{100}cd
  301. ab\x{200}cd
  302. ab\x{200}\x{100}\x{200}\x{100}cd
  303. /(?<=[\x{100}\x{200}])X/utf
  304. abc\x{200}X
  305. abc\x{100}X
  306. \= Expect no match
  307. X
  308. /(?<=[Q\x{100}\x{200}])X/utf
  309. abc\x{200}X
  310. abc\x{100}X
  311. abQX
  312. \= Expect no match
  313. X
  314. /(?<=[\x{100}\x{200}]{3})X/utf
  315. abc\x{100}\x{200}\x{100}X
  316. \= Expect no match
  317. abc\x{200}X
  318. X
  319. /[^\x{100}\x{200}]X/utf
  320. AX
  321. \x{150}X
  322. \x{500}X
  323. \= Expect no match
  324. \x{100}X
  325. \x{200}X
  326. /[^Q\x{100}\x{200}]X/utf
  327. AX
  328. \x{150}X
  329. \x{500}X
  330. \= Expect no match
  331. \x{100}X
  332. \x{200}X
  333. QX
  334. /[^\x{100}-\x{200}]X/utf
  335. AX
  336. \x{500}X
  337. \= Expect no match
  338. \x{100}X
  339. \x{150}X
  340. \x{200}X
  341. /[z-\x{100}]/i,utf
  342. z
  343. Z
  344. \x{100}
  345. \= Expect no match
  346. \x{102}
  347. y
  348. /[\xFF]/
  349. >\xff<
  350. /[\xff]/utf
  351. >\x{ff}<
  352. /[^\xFF]/
  353. XYZ
  354. /[^\xff]/utf
  355. XYZ
  356. \x{123}
  357. /^[ac]*b/utf
  358. \= Expect no match
  359. xb
  360. /^[ac\x{100}]*b/utf
  361. \= Expect no match
  362. xb
  363. /^[^x]*b/i,utf
  364. \= Expect no match
  365. xb
  366. /^[^x]*b/utf
  367. \= Expect no match
  368. xb
  369. /^\d*b/utf
  370. \= Expect no match
  371. xb
  372. /(|a)/g,utf
  373. catac
  374. a\x{256}a
  375. /^\x{85}$/i,utf
  376. \x{85}
  377. /^ሴ/utf
  378. /^\ሴ/utf
  379. /(?s)(.{1,5})/utf
  380. abcdefg
  381. ab
  382. /a*\x{100}*\w/utf
  383. a
  384. /\S\S/g,utf
  385. A\x{a3}BC
  386. /\S{2}/g,utf
  387. A\x{a3}BC
  388. /\W\W/g,utf
  389. +\x{a3}==
  390. /\W{2}/g,utf
  391. +\x{a3}==
  392. /\S/g,utf
  393. \x{442}\x{435}\x{441}\x{442}
  394. /[\S]/g,utf
  395. \x{442}\x{435}\x{441}\x{442}
  396. /\D/g,utf
  397. \x{442}\x{435}\x{441}\x{442}
  398. /[\D]/g,utf
  399. \x{442}\x{435}\x{441}\x{442}
  400. /\W/g,utf
  401. \x{2442}\x{2435}\x{2441}\x{2442}
  402. /[\W]/g,utf
  403. \x{2442}\x{2435}\x{2441}\x{2442}
  404. /[\S\s]*/utf
  405. abc\n\r\x{442}\x{435}\x{441}\x{442}xyz
  406. /[\x{41f}\S]/g,utf
  407. \x{442}\x{435}\x{441}\x{442}
  408. /.[^\S]./g,utf
  409. abc def\x{442}\x{443}xyz\npqr
  410. /.[^\S\n]./g,utf
  411. abc def\x{442}\x{443}xyz\npqr
  412. /[[:^alnum:]]/g,utf
  413. +\x{2442}
  414. /[[:^alpha:]]/g,utf
  415. +\x{2442}
  416. /[[:^ascii:]]/g,utf
  417. A\x{442}
  418. /[[:^blank:]]/g,utf
  419. A\x{442}
  420. /[[:^cntrl:]]/g,utf
  421. A\x{442}
  422. /[[:^digit:]]/g,utf
  423. A\x{442}
  424. /[[:^graph:]]/g,utf
  425. \x19\x{e01ff}
  426. /[[:^lower:]]/g,utf
  427. A\x{422}
  428. /[[:^print:]]/g,utf
  429. \x{19}\x{e01ff}
  430. /[[:^punct:]]/g,utf
  431. A\x{442}
  432. /[[:^space:]]/g,utf
  433. A\x{442}
  434. /[[:^upper:]]/g,utf
  435. a\x{442}
  436. /[[:^word:]]/g,utf
  437. +\x{2442}
  438. /[[:^xdigit:]]/g,utf
  439. M\x{442}
  440. /[^ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉƊƋƎƏƐƑƓƔƖƗƘƜƝƟƠƢƤƦƧƩƬƮƯƱƲƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶǷǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁΆΈΉΊΌΎΏΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϒϓϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸԀԂԄԆԈԊԌԎԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈἉἊἋἌἍἎἏἘἙἚἛἜἝἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿὈὉὊὋὌὍὙὛὝὟὨὩὪὫὬὭὮὯᾸᾹᾺΆῈΈῊΉῘῙῚΊῨῩῪΎῬῸΌῺΏabcdefghijklmnopqrstuvwxyzªµºßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſƀƃƅƈƌƍƒƕƙƚƛƞơƣƥƨƪƫƭưƴƶƹƺƽƾƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳȴȵȶȷȸȹȼȿɀɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϐϑϕϖϗϙϛϝϟϡϣϥϧϩϫϭϯϰϱϲϳϵϸϻϼабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹԁԃԅԇԉԋԍԏաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևᴀᴁᴂᴃᴄᴅᴆᴇᴈᴉᴊᴋᴌᴍᴎᴏᴐᴑᴒᴓᴔᴕᴖᴗᴘᴙᴚᴛᴜᴝᴞᴟᴠᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬᵭᵮᵯᵰᵱᵲᵳᵴᵵᵶᵷᵹᵺᵻᵼᵽᵾᵿᶀᶁᶂᶃᶄᶅᶆᶇᶈᶉᶊᶋᶌᶍᶎᶏᶐᶑᶒᶓᶔᶕᶖᶗᶘᶙᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕẖẗẘẙẚẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀἁἂἃἄἅἆἇἐἑἒἓἔἕἠἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷὀὁὂὃὄὅὐὑὒὓὔὕὖὗὠὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾐᾑᾒᾓᾔᾕᾖᾗᾠᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιῂῃῄῆῇῐῑῒΐῖῗῠῡῢΰῤῥῦῧῲῳῴῶῷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥfffiflffifflſtstﬓﬔﬕﬖﬗ\d_^]/utf
  441. /^[^d]*?$/
  442. abc
  443. /^[^d]*?$/utf
  444. abc
  445. /^[^d]*?$/i
  446. abc
  447. /^[^d]*?$/i,utf
  448. abc
  449. /(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/utf
  450. /^[a\x{c0}]b/utf
  451. \x{c0}b
  452. /^([a\x{c0}]*?)aa/utf
  453. a\x{c0}aaaa/
  454. /^([a\x{c0}]*?)aa/utf
  455. a\x{c0}aaaa/
  456. a\x{c0}a\x{c0}aaa/
  457. /^([a\x{c0}]*)aa/utf
  458. a\x{c0}aaaa/
  459. a\x{c0}a\x{c0}aaa/
  460. /^([a\x{c0}]*)a\x{c0}/utf
  461. a\x{c0}aaaa/
  462. a\x{c0}a\x{c0}aaa/
  463. /A*/g,utf
  464. AAB\x{123}BAA
  465. /(abc)\1/i,utf
  466. \= Expect no match
  467. abc
  468. /(abc)\1/utf
  469. \= Expect no match
  470. abc
  471. /a(*:a\x{1234}b)/utf,mark
  472. abc
  473. /a(*:a£b)/utf,mark
  474. abc
  475. # Noncharacters
  476. /./utf
  477. \x{fffe}
  478. \x{ffff}
  479. \x{1fffe}
  480. \x{1ffff}
  481. \x{2fffe}
  482. \x{2ffff}
  483. \x{3fffe}
  484. \x{3ffff}
  485. \x{4fffe}
  486. \x{4ffff}
  487. \x{5fffe}
  488. \x{5ffff}
  489. \x{6fffe}
  490. \x{6ffff}
  491. \x{7fffe}
  492. \x{7ffff}
  493. \x{8fffe}
  494. \x{8ffff}
  495. \x{9fffe}
  496. \x{9ffff}
  497. \x{afffe}
  498. \x{affff}
  499. \x{bfffe}
  500. \x{bffff}
  501. \x{cfffe}
  502. \x{cffff}
  503. \x{dfffe}
  504. \x{dffff}
  505. \x{efffe}
  506. \x{effff}
  507. \x{ffffe}
  508. \x{fffff}
  509. \x{10fffe}
  510. \x{10ffff}
  511. \x{fdd0}
  512. \x{fdd1}
  513. \x{fdd2}
  514. \x{fdd3}
  515. \x{fdd4}
  516. \x{fdd5}
  517. \x{fdd6}
  518. \x{fdd7}
  519. \x{fdd8}
  520. \x{fdd9}
  521. \x{fdda}
  522. \x{fddb}
  523. \x{fddc}
  524. \x{fddd}
  525. \x{fdde}
  526. \x{fddf}
  527. \x{fde0}
  528. \x{fde1}
  529. \x{fde2}
  530. \x{fde3}
  531. \x{fde4}
  532. \x{fde5}
  533. \x{fde6}
  534. \x{fde7}
  535. \x{fde8}
  536. \x{fde9}
  537. \x{fdea}
  538. \x{fdeb}
  539. \x{fdec}
  540. \x{fded}
  541. \x{fdee}
  542. \x{fdef}
  543. /^\d*\w{4}/utf
  544. 1234
  545. \= Expect no match
  546. 123
  547. /^[^b]*\w{4}/utf
  548. aaaa
  549. \= Expect no match
  550. aaa
  551. /^[^b]*\w{4}/i,utf
  552. aaaa
  553. \= Expect no match
  554. aaa
  555. /^\x{100}*.{4}/utf
  556. \x{100}\x{100}\x{100}\x{100}
  557. \= Expect no match
  558. \x{100}\x{100}\x{100}
  559. /^\x{100}*.{4}/i,utf
  560. \x{100}\x{100}\x{100}\x{100}
  561. \= Expect no match
  562. \x{100}\x{100}\x{100}
  563. /^a+[a\x{200}]/utf
  564. aa
  565. /^.\B.\B./utf
  566. \x{10123}\x{10124}\x{10125}
  567. /^#[^\x{ffff}]#[^\x{ffff}]#[^\x{ffff}]#/utf
  568. #\x{10000}#\x{100}#\x{10ffff}#
  569. # Unicode property support tests
  570. /^\pC\pL\pM\pN\pP\pS\pZ</utf
  571. \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
  572. \np\x{300}9!\$ <
  573. \= Expect no match
  574. ap\x{300}9!\$ <
  575. /^\PC/utf
  576. X
  577. \= Expect no match
  578. \x7f
  579. /^\PL/utf
  580. 9
  581. \= Expect no match
  582. \x{c0}
  583. /^\PM/utf
  584. X
  585. \= Expect no match
  586. \x{30f}
  587. /^\PN/utf
  588. X
  589. \= Expect no match
  590. \x{660}
  591. /^\PP/utf
  592. X
  593. \= Expect no match
  594. \x{66c}
  595. /^\PS/utf
  596. X
  597. \= Expect no match
  598. \x{f01}
  599. /^\PZ/utf
  600. X
  601. \= Expect no match
  602. \x{1680}
  603. /^\p{Cc}/utf
  604. \x{017}
  605. \x{09f}
  606. \= Expect no match
  607. \x{0600}
  608. /^\p{Cf}/utf
  609. \x{601}
  610. \= Expect no match
  611. \x{09f}
  612. /^\p{Cn}/utf
  613. \x{e0000}
  614. \= Expect no match
  615. \x{09f}
  616. /^\p{Co}/utf
  617. \x{f8ff}
  618. \= Expect no match
  619. \x{09f}
  620. /^\p{Ll}/utf
  621. a
  622. \= Expect no match
  623. Z
  624. \x{e000}
  625. /^\p{Lm}/utf
  626. \x{2b0}
  627. \= Expect no match
  628. a
  629. /^\p{Lo}/utf
  630. \x{1bb}
  631. \x{3400}
  632. \x{3401}
  633. \x{4d00}
  634. \x{4db4}
  635. \x{4db5}
  636. \x{4db6}
  637. \= Expect no match
  638. a
  639. \x{2b0}
  640. /^\p{Lt}/utf
  641. \x{1c5}
  642. \= Expect no match
  643. a
  644. \x{2b0}
  645. /^\p{Lu}/utf
  646. A
  647. \= Expect no match
  648. \x{2b0}
  649. /^\p{Mc}/utf
  650. \x{903}
  651. \= Expect no match
  652. X
  653. \x{300}
  654. /^\p{Me}/utf
  655. \x{488}
  656. \= Expect no match
  657. X
  658. \x{903}
  659. \x{300}
  660. /^\p{Mn}/utf
  661. \x{300}
  662. \= Expect no match
  663. X
  664. \x{903}
  665. /^\p{Nd}+/utf
  666. 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}\x{66a}
  667. \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}\x{6fa}
  668. \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}\x{970}
  669. \= Expect no match
  670. X
  671. /^\p{Nl}/utf
  672. \x{16ee}
  673. \= Expect no match
  674. X
  675. \x{966}
  676. /^\p{No}/utf
  677. \x{b2}
  678. \x{b3}
  679. \= Expect no match
  680. X
  681. \x{16ee}
  682. /^\p{Pc}/utf
  683. \x5f
  684. \x{203f}
  685. \= Expect no match
  686. X
  687. -
  688. \x{58a}
  689. /^\p{Pd}/utf
  690. -
  691. \x{58a}
  692. \= Expect no match
  693. X
  694. \x{203f}
  695. /^\p{Pe}/utf
  696. )
  697. ]
  698. }
  699. \x{f3b}
  700. \= Expect no match
  701. X
  702. \x{203f}
  703. (
  704. [
  705. {
  706. \x{f3c}
  707. /^\p{Pf}/utf
  708. \x{bb}
  709. \x{2019}
  710. \= Expect no match
  711. X
  712. \x{203f}
  713. /^\p{Pi}/utf
  714. \x{ab}
  715. \x{2018}
  716. \= Expect no match
  717. X
  718. \x{203f}
  719. /^\p{Po}/utf
  720. !
  721. \x{37e}
  722. \= Expect no match
  723. X
  724. \x{203f}
  725. /^\p{Ps}/utf
  726. (
  727. [
  728. {
  729. \x{f3c}
  730. \= Expect no match
  731. X
  732. )
  733. ]
  734. }
  735. \x{f3b}
  736. /^\p{Sk}/utf
  737. \x{2c2}
  738. \= Expect no match
  739. X
  740. \x{9f2}
  741. /^\p{Sm}+/utf
  742. +<|~\x{ac}\x{2044}
  743. \= Expect no match
  744. X
  745. \x{9f2}
  746. /^\p{So}/utf
  747. \x{a6}
  748. \x{482}
  749. \= Expect no match
  750. X
  751. \x{9f2}
  752. /^\p{Zl}/utf
  753. \x{2028}
  754. \= Expect no match
  755. X
  756. \x{2029}
  757. /^\p{Zp}/utf
  758. \x{2029}
  759. \= Expect no match
  760. X
  761. \x{2028}
  762. /\p{Nd}+(..)/utf
  763. \x{660}\x{661}\x{662}ABC
  764. /\p{Nd}+?(..)/utf
  765. \x{660}\x{661}\x{662}ABC
  766. /\p{Nd}{2,}(..)/utf
  767. \x{660}\x{661}\x{662}ABC
  768. /\p{Nd}{2,}?(..)/utf
  769. \x{660}\x{661}\x{662}ABC
  770. /\p{Nd}*(..)/utf
  771. \x{660}\x{661}\x{662}ABC
  772. /\p{Nd}*?(..)/utf
  773. \x{660}\x{661}\x{662}ABC
  774. /\p{Nd}{2}(..)/utf
  775. \x{660}\x{661}\x{662}ABC
  776. /\p{Nd}{2,3}(..)/utf
  777. \x{660}\x{661}\x{662}ABC
  778. /\p{Nd}{2,3}?(..)/utf
  779. \x{660}\x{661}\x{662}ABC
  780. /\p{Nd}?(..)/utf
  781. \x{660}\x{661}\x{662}ABC
  782. /\p{Nd}??(..)/utf
  783. \x{660}\x{661}\x{662}ABC
  784. /\p{Nd}*+(..)/utf
  785. \x{660}\x{661}\x{662}ABC
  786. /\p{Nd}*+(...)/utf
  787. \x{660}\x{661}\x{662}ABC
  788. /\p{Nd}*+(....)/utf
  789. \= Expect no match
  790. \x{660}\x{661}\x{662}ABC
  791. /(?<=A\p{Nd})XYZ/utf
  792. A2XYZ
  793. 123A5XYZPQR
  794. ABA\x{660}XYZpqr
  795. \= Expect no match
  796. AXYZ
  797. XYZ
  798. /(?<!\pL)XYZ/utf
  799. 1XYZ
  800. AB=XYZ..
  801. XYZ
  802. \= Expect no match
  803. WXYZ
  804. /[\P{Nd}]+/utf
  805. abcd
  806. \= Expect no match
  807. 1234
  808. /\D+/utf
  809. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  810. \= Expect no match
  811. 11111111111111111111111111111111111111111111111111111111111111111111111
  812. /\P{Nd}+/utf
  813. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  814. \= Expect no match
  815. 11111111111111111111111111111111111111111111111111111111111111111111111
  816. /[\D]+/utf
  817. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  818. \= Expect no match
  819. 11111111111111111111111111111111111111111111111111111111111111111111111
  820. /[\P{Nd}]+/utf
  821. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  822. \= Expect no match
  823. 11111111111111111111111111111111111111111111111111111111111111111111111
  824. /[\D\P{Nd}]+/utf
  825. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  826. \= Expect no match
  827. 11111111111111111111111111111111111111111111111111111111111111111111111
  828. /\pL/utf
  829. a
  830. A
  831. /\pL/i,utf
  832. a
  833. A
  834. /\p{Lu}/utf
  835. A
  836. aZ
  837. \= Expect no match
  838. abc
  839. /\p{Ll}/utf
  840. a
  841. Az
  842. \= Expect no match
  843. ABC
  844. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/utf
  845. A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  846. \= Expect no match
  847. a\x{391}\x{10427}\x{ff3a}\x{1fb0}
  848. A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
  849. A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
  850. A\x{391}\x{10427}\x{ff5a}\x{1fb0}
  851. A\x{391}\x{10427}\x{ff3a}\x{1fb8}
  852. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/i,utf
  853. A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  854. a\x{391}\x{10427}\x{ff3a}\x{1fb0}
  855. A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
  856. A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
  857. A\x{391}\x{10427}\x{ff5a}\x{1fb0}
  858. A\x{391}\x{10427}\x{ff3a}\x{1fb8}
  859. /\x{391}+/i,utf
  860. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
  861. /\x{391}{3,5}(.)/i,utf
  862. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
  863. /\x{391}{3,5}?(.)/i,utf
  864. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
  865. /[\x{391}\x{ff3a}]/i,utf
  866. \x{391}
  867. \x{ff3a}
  868. \x{3b1}
  869. \x{ff5a}
  870. /^(\X*)C/utf
  871. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  872. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  873. /^(\X*?)C/utf
  874. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  875. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  876. /^(\X*)(.)/utf
  877. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  878. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  879. /^(\X*?)(.)/utf
  880. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  881. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  882. /^\X(.)/utf
  883. \= Expect no match
  884. A\x{300}\x{301}\x{302}
  885. /^\X{2,3}(.)/utf
  886. A\x{300}\x{301}B\x{300}X
  887. A\x{300}\x{301}B\x{300}C\x{300}\x{301}
  888. A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
  889. A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
  890. /^\X{2,3}?(.)/utf
  891. A\x{300}\x{301}B\x{300}X
  892. A\x{300}\x{301}B\x{300}C\x{300}\x{301}
  893. A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
  894. A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
  895. /^\X/utf
  896. A
  897. A\x{300}BC
  898. A\x{300}\x{301}\x{302}BC
  899. \x{300}
  900. /^\p{Han}+/utf
  901. \x{2e81}\x{3007}\x{2f804}\x{31a0}
  902. \= Expect no match
  903. \x{2e7f}
  904. /^\P{Katakana}+/utf
  905. \x{3105}
  906. \= Expect no match
  907. \x{30ff}
  908. /^[\p{Arabic}]/utf
  909. \x{06e9}
  910. \x{060b}
  911. \= Expect no match
  912. X\x{06e9}
  913. /^[\P{Yi}]/utf
  914. \x{2f800}
  915. \= Expect no match
  916. \x{a014}
  917. \x{a4c6}
  918. /^\p{Any}X/utf
  919. AXYZ
  920. \x{1234}XYZ
  921. \= Expect no match
  922. X
  923. /^\P{Any}X/utf
  924. \= Expect no match
  925. AX
  926. /^\p{Any}?X/utf
  927. XYZ
  928. AXYZ
  929. \x{1234}XYZ
  930. \= Expect no match
  931. ABXYZ
  932. /^\P{Any}?X/utf
  933. XYZ
  934. \= Expect no match
  935. AXYZ
  936. \x{1234}XYZ
  937. ABXYZ
  938. /^\p{Any}+X/utf
  939. AXYZ
  940. \x{1234}XYZ
  941. A\x{1234}XYZ
  942. \= Expect no match
  943. XYZ
  944. /^\P{Any}+X/utf
  945. \= Expect no match
  946. AXYZ
  947. \x{1234}XYZ
  948. A\x{1234}XYZ
  949. XYZ
  950. /^\p{Any}*X/utf
  951. XYZ
  952. AXYZ
  953. \x{1234}XYZ
  954. A\x{1234}XYZ
  955. /^\P{Any}*X/utf
  956. XYZ
  957. \= Expect no match
  958. AXYZ
  959. \x{1234}XYZ
  960. A\x{1234}XYZ
  961. /^[\p{Any}]X/utf
  962. AXYZ
  963. \x{1234}XYZ
  964. \= Expect no match
  965. X
  966. /^[\P{Any}]X/utf
  967. \= Expect no match
  968. AX
  969. /^[\p{Any}]?X/utf
  970. XYZ
  971. AXYZ
  972. \x{1234}XYZ
  973. \= Expect no match
  974. ABXYZ
  975. /^[\P{Any}]?X/utf
  976. XYZ
  977. \= Expect no match
  978. AXYZ
  979. \x{1234}XYZ
  980. ABXYZ
  981. /^[\p{Any}]+X/utf
  982. AXYZ
  983. \x{1234}XYZ
  984. A\x{1234}XYZ
  985. \= Expect no match
  986. XYZ
  987. /^[\P{Any}]+X/utf
  988. \= Expect no match
  989. AXYZ
  990. \x{1234}XYZ
  991. A\x{1234}XYZ
  992. XYZ
  993. /^[\p{Any}]*X/utf
  994. XYZ
  995. AXYZ
  996. \x{1234}XYZ
  997. A\x{1234}XYZ
  998. /^[\P{Any}]*X/utf
  999. XYZ
  1000. \= Expect no match
  1001. AXYZ
  1002. \x{1234}XYZ
  1003. A\x{1234}XYZ
  1004. /^\p{Any}{3,5}?/utf
  1005. abcdefgh
  1006. \x{1234}\n\r\x{3456}xyz
  1007. /^\p{Any}{3,5}/utf
  1008. abcdefgh
  1009. \x{1234}\n\r\x{3456}xyz
  1010. /^\P{Any}{3,5}?/utf
  1011. \= Expect no match
  1012. abcdefgh
  1013. \x{1234}\n\r\x{3456}xyz
  1014. /^\p{L&}X/utf
  1015. AXY
  1016. aXY
  1017. \x{1c5}XY
  1018. \= Expect no match
  1019. \x{1bb}XY
  1020. \x{2b0}XY
  1021. !XY
  1022. /^[\p{L&}]X/utf
  1023. AXY
  1024. aXY
  1025. \x{1c5}XY
  1026. \= Expect no match
  1027. \x{1bb}XY
  1028. \x{2b0}XY
  1029. !XY
  1030. /^\p{L&}+X/utf
  1031. AXY
  1032. aXY
  1033. AbcdeXyz
  1034. \x{1c5}AbXY
  1035. abcDEXypqreXlmn
  1036. \= Expect no match
  1037. \x{1bb}XY
  1038. \x{2b0}XY
  1039. !XY
  1040. /^[\p{L&}]+X/utf
  1041. AXY
  1042. aXY
  1043. AbcdeXyz
  1044. \x{1c5}AbXY
  1045. abcDEXypqreXlmn
  1046. \= Expect no match
  1047. \x{1bb}XY
  1048. \x{2b0}XY
  1049. !XY
  1050. /^\p{L&}+?X/utf
  1051. AXY
  1052. aXY
  1053. AbcdeXyz
  1054. \x{1c5}AbXY
  1055. abcDEXypqreXlmn
  1056. \= Expect no match
  1057. \x{1bb}XY
  1058. \x{2b0}XY
  1059. !XY
  1060. /^[\p{L&}]+?X/utf
  1061. AXY
  1062. aXY
  1063. AbcdeXyz
  1064. \x{1c5}AbXY
  1065. abcDEXypqreXlmn
  1066. \= Expect no match
  1067. \x{1bb}XY
  1068. \x{2b0}XY
  1069. !XY
  1070. /^\P{L&}X/utf
  1071. !XY
  1072. \x{1bb}XY
  1073. \x{2b0}XY
  1074. \= Expect no match
  1075. \x{1c5}XY
  1076. AXY
  1077. /^[\P{L&}]X/utf
  1078. !XY
  1079. \x{1bb}XY
  1080. \x{2b0}XY
  1081. \= Expect no match
  1082. \x{1c5}XY
  1083. AXY
  1084. /^(\p{Z}[^\p{C}\p{Z}]+)*$/
  1085. \xa0!
  1086. /^[\pL](abc)(?1)/
  1087. AabcabcYZ
  1088. /([\pL]=(abc))*X/
  1089. L=abcX
  1090. /^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/utf
  1091. \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
  1092. # Check property support in non-UTF mode
  1093. /\p{L}{4}/
  1094. 123abcdefg
  1095. 123abc\xc4\xc5zz
  1096. /\X{1,3}\d/
  1097. \= Expect no match
  1098. \x8aBCD
  1099. /\X?\d/
  1100. \= Expect no match
  1101. \x8aBCD
  1102. /\P{L}?\d/
  1103. \= Expect no match
  1104. \x8aBCD
  1105. /[\PPP\x8a]{1,}\x80/
  1106. A\x80
  1107. /^[\p{Arabic}]/utf
  1108. \x{604}
  1109. \x{60e}
  1110. \x{656}
  1111. \x{657}
  1112. \x{658}
  1113. \x{659}
  1114. \x{65a}
  1115. \x{65b}
  1116. \x{65c}
  1117. \x{65d}
  1118. \x{65e}
  1119. \x{65f}
  1120. \x{66a}
  1121. \x{6e9}
  1122. \x{6ef}
  1123. \x{6fa}
  1124. /^\p{Cyrillic}/utf
  1125. \x{1d2b}
  1126. /^\p{Common}/utf
  1127. \x{2116}
  1128. \x{1D183}
  1129. /^\p{Inherited}/utf
  1130. \x{200c}
  1131. \= Expect no match
  1132. \x{64a}
  1133. \x{656}
  1134. /^\p{Shavian}/utf
  1135. \x{10450}
  1136. \x{1047f}
  1137. /^\p{Deseret}/utf
  1138. \x{10400}
  1139. \x{1044f}
  1140. /^\p{Osmanya}/utf
  1141. \x{10480}
  1142. \x{1049d}
  1143. \x{104a0}
  1144. \x{104a9}
  1145. \= Expect no match
  1146. \x{1049e}
  1147. \x{1049f}
  1148. \x{104aa}
  1149. /\p{Carian}\p{Cham}\p{Kayah_Li}\p{Lepcha}\p{Lycian}\p{Lydian}\p{Ol_Chiki}\p{Rejang}\p{Saurashtra}\p{Sundanese}\p{Vai}/utf
  1150. \x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}====
  1151. /\x{a77d}\x{1d79}/i,utf
  1152. \x{a77d}\x{1d79}
  1153. \x{1d79}\x{a77d}
  1154. /\x{a77d}\x{1d79}/utf
  1155. \x{a77d}\x{1d79}
  1156. \= Expect no match
  1157. \x{1d79}\x{a77d}
  1158. /(A)\1/i,utf
  1159. AA
  1160. Aa
  1161. aa
  1162. aA
  1163. /(\x{10a})\1/i,utf
  1164. \x{10a}\x{10a}
  1165. \x{10a}\x{10b}
  1166. \x{10b}\x{10b}
  1167. \x{10b}\x{10a}
  1168. # The next two tests are for property support in non-UTF mode
  1169. /(?:\p{Lu}|\x20)+/
  1170. \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
  1171. /[\p{Lu}\x20]+/
  1172. \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
  1173. /\p{Avestan}\p{Bamum}\p{Egyptian_Hieroglyphs}\p{Imperial_Aramaic}\p{Inscriptional_Pahlavi}\p{Inscriptional_Parthian}\p{Javanese}\p{Kaithi}\p{Lisu}\p{Meetei_Mayek}\p{Old_South_Arabian}\p{Old_Turkic}\p{Samaritan}\p{Tai_Tham}\p{Tai_Viet}/utf
  1174. \x{10b00}\x{a6ef}\x{13007}\x{10857}\x{10b78}\x{10b58}\x{a980}\x{110c1}\x{a4ff}\x{abc0}\x{10a7d}\x{10c48}\x{0800}\x{1aad}\x{aac0}
  1175. /^\w+/utf,ucp
  1176. Az_\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  1177. /^[[:xdigit:]]*/utf,ucp
  1178. 1a\x{660}\x{bef}\x{16ee}
  1179. /^\d+/utf,ucp
  1180. 1\x{660}\x{bef}\x{16ee}
  1181. /^[[:digit:]]+/utf,ucp
  1182. 1\x{660}\x{bef}\x{16ee}
  1183. /^>\s+/utf,ucp
  1184. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  1185. /^>\pZ+/utf,ucp
  1186. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  1187. /^>[[:space:]]*/utf,ucp
  1188. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  1189. /^>[[:blank:]]*/utf,ucp
  1190. >\x{20}\x{a0}\x{1680}\x{2000}\x{202f}\x{9}\x{b}\x{2028}
  1191. /^[[:alpha:]]*/utf,ucp
  1192. Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}
  1193. /^[[:alnum:]]*/utf,ucp
  1194. Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  1195. /^[[:cntrl:]]*/utf,ucp
  1196. \x{0}\x{09}\x{1f}\x{7f}\x{9f}
  1197. /^[[:graph:]]*/utf,ucp
  1198. A\x{a1}\x{a0}
  1199. /^[[:print:]]*/utf,ucp
  1200. A z\x{a0}\x{a1}
  1201. /^[[:punct:]]*/utf,ucp
  1202. .+\x{a1}\x{a0}
  1203. /\p{Zs}*?\R/
  1204. \= Expect no match
  1205. a\xFCb
  1206. /\p{Zs}*\R/
  1207. \= Expect no match
  1208. a\xFCb
  1209. /ⱥ/i,utf
  1210. Ⱥx
  1211. Ⱥ
  1212. /[ⱥ]/i,utf
  1213. Ⱥx
  1214. Ⱥ
  1215. /Ⱥ/i,utf
  1216. Ⱥ
  1217. # These are tests for extended grapheme clusters
  1218. /^\X/utf,aftertext
  1219. G\x{34e}\x{34e}X
  1220. \x{34e}\x{34e}X
  1221. \x04X
  1222. \x{1100}X
  1223. \x{1100}\x{34e}X
  1224. \x{1b04}\x{1b04}X
  1225. *These match up to the roman letters
  1226. \x{1111}\x{1111}L,L
  1227. \x{1111}\x{1111}\x{1169}L,L,V
  1228. \x{1111}\x{ae4c}L, LV
  1229. \x{1111}\x{ad89}L, LVT
  1230. \x{1111}\x{ae4c}\x{1169}L, LV, V
  1231. \x{1111}\x{ae4c}\x{1169}\x{1169}L, LV, V, V
  1232. \x{1111}\x{ae4c}\x{1169}\x{11fe}L, LV, V, T
  1233. \x{1111}\x{ad89}\x{11fe}L, LVT, T
  1234. \x{1111}\x{ad89}\x{11fe}\x{11fe}L, LVT, T, T
  1235. \x{ad89}\x{11fe}\x{11fe}LVT, T, T
  1236. *These match just the first codepoint (invalid sequence)
  1237. \x{1111}\x{11fe}L, T
  1238. \x{ae4c}\x{1111}LV, L
  1239. \x{ae4c}\x{ae4c}LV, LV
  1240. \x{ae4c}\x{ad89}LV, LVT
  1241. \x{1169}\x{1111}V, L
  1242. \x{1169}\x{ae4c}V, LV
  1243. \x{1169}\x{ad89}V, LVT
  1244. \x{ad89}\x{1111}LVT, L
  1245. \x{ad89}\x{1169}LVT, V
  1246. \x{ad89}\x{ae4c}LVT, LV
  1247. \x{ad89}\x{ad89}LVT, LVT
  1248. \x{11fe}\x{1111}T, L
  1249. \x{11fe}\x{1169}T, V
  1250. \x{11fe}\x{ae4c}T, LV
  1251. \x{11fe}\x{ad89}T, LVT
  1252. *Test extend and spacing mark
  1253. \x{1111}\x{ae4c}\x{0711}L, LV, extend
  1254. \x{1111}\x{ae4c}\x{1b04}L, LV, spacing mark
  1255. \x{1111}\x{ae4c}\x{1b04}\x{0711}\x{1b04}L, LV, spacing mark, extend, spacing mark
  1256. *Test CR, LF, and control
  1257. \x0d\x{0711}CR, extend
  1258. \x0d\x{1b04}CR, spacingmark
  1259. \x0a\x{0711}LF, extend
  1260. \x0a\x{1b04}LF, spacingmark
  1261. \x0b\x{0711}Control, extend
  1262. \x09\x{1b04}Control, spacingmark
  1263. *There are no Prepend characters, so we can't test Prepend, CR
  1264. /^(?>\X{2})X/utf,aftertext
  1265. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1266. /^\X{2,4}X/utf,aftertext
  1267. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1268. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1269. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1270. /^\X{2,4}?X/utf,aftertext
  1271. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1272. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1273. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  1274. /\X*Z/utf,no_start_optimize
  1275. \= Expect no match
  1276. A\x{300}
  1277. /\X*(.)/utf,no_start_optimize
  1278. A\x{1111}\x{ae4c}\x{1169}
  1279. # --------------------------------------------
  1280. /\x{1e9e}+/i,utf
  1281. \x{1e9e}\x{00df}
  1282. /[z\x{1e9e}]+/i,utf
  1283. \x{1e9e}\x{00df}
  1284. /\x{00df}+/i,utf
  1285. \x{1e9e}\x{00df}
  1286. /[z\x{00df}]+/i,utf
  1287. \x{1e9e}\x{00df}
  1288. /\x{1f88}+/i,utf
  1289. \x{1f88}\x{1f80}
  1290. /[z\x{1f88}]+/i,utf
  1291. \x{1f88}\x{1f80}
  1292. # Check a reference with more than one other case
  1293. /^(\x{00b5})\1{2}$/i,utf
  1294. \x{00b5}\x{039c}\x{03bc}
  1295. # Characters with more than one other case; test in classes
  1296. /[z\x{00b5}]+/i,utf
  1297. \x{00b5}\x{039c}\x{03bc}
  1298. /[z\x{039c}]+/i,utf
  1299. \x{00b5}\x{039c}\x{03bc}
  1300. /[z\x{03bc}]+/i,utf
  1301. \x{00b5}\x{039c}\x{03bc}
  1302. /[z\x{00c5}]+/i,utf
  1303. \x{00c5}\x{00e5}\x{212b}
  1304. /[z\x{00e5}]+/i,utf
  1305. \x{00c5}\x{00e5}\x{212b}
  1306. /[z\x{212b}]+/i,utf
  1307. \x{00c5}\x{00e5}\x{212b}
  1308. /[z\x{01c4}]+/i,utf
  1309. \x{01c4}\x{01c5}\x{01c6}
  1310. /[z\x{01c5}]+/i,utf
  1311. \x{01c4}\x{01c5}\x{01c6}
  1312. /[z\x{01c6}]+/i,utf
  1313. \x{01c4}\x{01c5}\x{01c6}
  1314. /[z\x{01c7}]+/i,utf
  1315. \x{01c7}\x{01c8}\x{01c9}
  1316. /[z\x{01c8}]+/i,utf
  1317. \x{01c7}\x{01c8}\x{01c9}
  1318. /[z\x{01c9}]+/i,utf
  1319. \x{01c7}\x{01c8}\x{01c9}
  1320. /[z\x{01ca}]+/i,utf
  1321. \x{01ca}\x{01cb}\x{01cc}
  1322. /[z\x{01cb}]+/i,utf
  1323. \x{01ca}\x{01cb}\x{01cc}
  1324. /[z\x{01cc}]+/i,utf
  1325. \x{01ca}\x{01cb}\x{01cc}
  1326. /[z\x{01f1}]+/i,utf
  1327. \x{01f1}\x{01f2}\x{01f3}
  1328. /[z\x{01f2}]+/i,utf
  1329. \x{01f1}\x{01f2}\x{01f3}
  1330. /[z\x{01f3}]+/i,utf
  1331. \x{01f1}\x{01f2}\x{01f3}
  1332. /[z\x{0345}]+/i,utf
  1333. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1334. /[z\x{0399}]+/i,utf
  1335. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1336. /[z\x{03b9}]+/i,utf
  1337. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1338. /[z\x{1fbe}]+/i,utf
  1339. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1340. /[z\x{0392}]+/i,utf
  1341. \x{0392}\x{03b2}\x{03d0}
  1342. /[z\x{03b2}]+/i,utf
  1343. \x{0392}\x{03b2}\x{03d0}
  1344. /[z\x{03d0}]+/i,utf
  1345. \x{0392}\x{03b2}\x{03d0}
  1346. /[z\x{0395}]+/i,utf
  1347. \x{0395}\x{03b5}\x{03f5}
  1348. /[z\x{03b5}]+/i,utf
  1349. \x{0395}\x{03b5}\x{03f5}
  1350. /[z\x{03f5}]+/i,utf
  1351. \x{0395}\x{03b5}\x{03f5}
  1352. /[z\x{0398}]+/i,utf
  1353. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1354. /[z\x{03b8}]+/i,utf
  1355. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1356. /[z\x{03d1}]+/i,utf
  1357. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1358. /[z\x{03f4}]+/i,utf
  1359. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1360. /[z\x{039a}]+/i,utf
  1361. \x{039a}\x{03ba}\x{03f0}
  1362. /[z\x{03ba}]+/i,utf
  1363. \x{039a}\x{03ba}\x{03f0}
  1364. /[z\x{03f0}]+/i,utf
  1365. \x{039a}\x{03ba}\x{03f0}
  1366. /[z\x{03a0}]+/i,utf
  1367. \x{03a0}\x{03c0}\x{03d6}
  1368. /[z\x{03c0}]+/i,utf
  1369. \x{03a0}\x{03c0}\x{03d6}
  1370. /[z\x{03d6}]+/i,utf
  1371. \x{03a0}\x{03c0}\x{03d6}
  1372. /[z\x{03a1}]+/i,utf
  1373. \x{03a1}\x{03c1}\x{03f1}
  1374. /[z\x{03c1}]+/i,utf
  1375. \x{03a1}\x{03c1}\x{03f1}
  1376. /[z\x{03f1}]+/i,utf
  1377. \x{03a1}\x{03c1}\x{03f1}
  1378. /[z\x{03a3}]+/i,utf
  1379. \x{03A3}\x{03C2}\x{03C3}
  1380. /[z\x{03c2}]+/i,utf
  1381. \x{03A3}\x{03C2}\x{03C3}
  1382. /[z\x{03c3}]+/i,utf
  1383. \x{03A3}\x{03C2}\x{03C3}
  1384. /[z\x{03a6}]+/i,utf
  1385. \x{03a6}\x{03c6}\x{03d5}
  1386. /[z\x{03c6}]+/i,utf
  1387. \x{03a6}\x{03c6}\x{03d5}
  1388. /[z\x{03d5}]+/i,utf
  1389. \x{03a6}\x{03c6}\x{03d5}
  1390. /[z\x{03c9}]+/i,utf
  1391. \x{03c9}\x{03a9}\x{2126}
  1392. /[z\x{03a9}]+/i,utf
  1393. \x{03c9}\x{03a9}\x{2126}
  1394. /[z\x{2126}]+/i,utf
  1395. \x{03c9}\x{03a9}\x{2126}
  1396. /[z\x{1e60}]+/i,utf
  1397. \x{1e60}\x{1e61}\x{1e9b}
  1398. /[z\x{1e61}]+/i,utf
  1399. \x{1e60}\x{1e61}\x{1e9b}
  1400. /[z\x{1e9b}]+/i,utf
  1401. \x{1e60}\x{1e61}\x{1e9b}
  1402. # Perl 5.12.4 gets these wrong, but 5.15.3 is OK
  1403. /[z\x{004b}]+/i,utf
  1404. \x{004b}\x{006b}\x{212a}
  1405. /[z\x{006b}]+/i,utf
  1406. \x{004b}\x{006b}\x{212a}
  1407. /[z\x{212a}]+/i,utf
  1408. \x{004b}\x{006b}\x{212a}
  1409. /[z\x{0053}]+/i,utf
  1410. \x{0053}\x{0073}\x{017f}
  1411. /[z\x{0073}]+/i,utf
  1412. \x{0053}\x{0073}\x{017f}
  1413. /[z\x{017f}]+/i,utf
  1414. \x{0053}\x{0073}\x{017f}
  1415. # --------------------------------------
  1416. /(ΣΆΜΟΣ) \1/i,utf
  1417. ΣΆΜΟΣ ΣΆΜΟΣ
  1418. ΣΆΜΟΣ σάμος
  1419. σάμος σάμος
  1420. σάμος σάμοσ
  1421. σάμος ΣΆΜΟΣ
  1422. /(σάμος) \1/i,utf
  1423. ΣΆΜΟΣ ΣΆΜΟΣ
  1424. ΣΆΜΟΣ σάμος
  1425. σάμος σάμος
  1426. σάμος σάμοσ
  1427. σάμος ΣΆΜΟΣ
  1428. /(ΣΆΜΟΣ) \1*/i,utf
  1429. ΣΆΜΟΣ\x20
  1430. ΣΆΜΟΣ ΣΆΜΟΣσάμοςσάμος
  1431. # Perl matches these
  1432. /\x{00b5}+/i,utf
  1433. \x{00b5}\x{039c}\x{03bc}
  1434. /\x{039c}+/i,utf
  1435. \x{00b5}\x{039c}\x{03bc}
  1436. /\x{03bc}+/i,utf
  1437. \x{00b5}\x{039c}\x{03bc}
  1438. /\x{00c5}+/i,utf
  1439. \x{00c5}\x{00e5}\x{212b}
  1440. /\x{00e5}+/i,utf
  1441. \x{00c5}\x{00e5}\x{212b}
  1442. /\x{212b}+/i,utf
  1443. \x{00c5}\x{00e5}\x{212b}
  1444. /\x{01c4}+/i,utf
  1445. \x{01c4}\x{01c5}\x{01c6}
  1446. /\x{01c5}+/i,utf
  1447. \x{01c4}\x{01c5}\x{01c6}
  1448. /\x{01c6}+/i,utf
  1449. \x{01c4}\x{01c5}\x{01c6}
  1450. /\x{01c7}+/i,utf
  1451. \x{01c7}\x{01c8}\x{01c9}
  1452. /\x{01c8}+/i,utf
  1453. \x{01c7}\x{01c8}\x{01c9}
  1454. /\x{01c9}+/i,utf
  1455. \x{01c7}\x{01c8}\x{01c9}
  1456. /\x{01ca}+/i,utf
  1457. \x{01ca}\x{01cb}\x{01cc}
  1458. /\x{01cb}+/i,utf
  1459. \x{01ca}\x{01cb}\x{01cc}
  1460. /\x{01cc}+/i,utf
  1461. \x{01ca}\x{01cb}\x{01cc}
  1462. /\x{01f1}+/i,utf
  1463. \x{01f1}\x{01f2}\x{01f3}
  1464. /\x{01f2}+/i,utf
  1465. \x{01f1}\x{01f2}\x{01f3}
  1466. /\x{01f3}+/i,utf
  1467. \x{01f1}\x{01f2}\x{01f3}
  1468. /\x{0345}+/i,utf
  1469. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1470. /\x{0399}+/i,utf
  1471. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1472. /\x{03b9}+/i,utf
  1473. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1474. /\x{1fbe}+/i,utf
  1475. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  1476. /\x{0392}+/i,utf
  1477. \x{0392}\x{03b2}\x{03d0}
  1478. /\x{03b2}+/i,utf
  1479. \x{0392}\x{03b2}\x{03d0}
  1480. /\x{03d0}+/i,utf
  1481. \x{0392}\x{03b2}\x{03d0}
  1482. /\x{0395}+/i,utf
  1483. \x{0395}\x{03b5}\x{03f5}
  1484. /\x{03b5}+/i,utf
  1485. \x{0395}\x{03b5}\x{03f5}
  1486. /\x{03f5}+/i,utf
  1487. \x{0395}\x{03b5}\x{03f5}
  1488. /\x{0398}+/i,utf
  1489. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1490. /\x{03b8}+/i,utf
  1491. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1492. /\x{03d1}+/i,utf
  1493. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1494. /\x{03f4}+/i,utf
  1495. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  1496. /\x{039a}+/i,utf
  1497. \x{039a}\x{03ba}\x{03f0}
  1498. /\x{03ba}+/i,utf
  1499. \x{039a}\x{03ba}\x{03f0}
  1500. /\x{03f0}+/i,utf
  1501. \x{039a}\x{03ba}\x{03f0}
  1502. /\x{03a0}+/i,utf
  1503. \x{03a0}\x{03c0}\x{03d6}
  1504. /\x{03c0}+/i,utf
  1505. \x{03a0}\x{03c0}\x{03d6}
  1506. /\x{03d6}+/i,utf
  1507. \x{03a0}\x{03c0}\x{03d6}
  1508. /\x{03a1}+/i,utf
  1509. \x{03a1}\x{03c1}\x{03f1}
  1510. /\x{03c1}+/i,utf
  1511. \x{03a1}\x{03c1}\x{03f1}
  1512. /\x{03f1}+/i,utf
  1513. \x{03a1}\x{03c1}\x{03f1}
  1514. /\x{03a3}+/i,utf
  1515. \x{03A3}\x{03C2}\x{03C3}
  1516. /\x{03c2}+/i,utf
  1517. \x{03A3}\x{03C2}\x{03C3}
  1518. /\x{03c3}+/i,utf
  1519. \x{03A3}\x{03C2}\x{03C3}
  1520. /\x{03a6}+/i,utf
  1521. \x{03a6}\x{03c6}\x{03d5}
  1522. /\x{03c6}+/i,utf
  1523. \x{03a6}\x{03c6}\x{03d5}
  1524. /\x{03d5}+/i,utf
  1525. \x{03a6}\x{03c6}\x{03d5}
  1526. /\x{03c9}+/i,utf
  1527. \x{03c9}\x{03a9}\x{2126}
  1528. /\x{03a9}+/i,utf
  1529. \x{03c9}\x{03a9}\x{2126}
  1530. /\x{2126}+/i,utf
  1531. \x{03c9}\x{03a9}\x{2126}
  1532. /\x{1e60}+/i,utf
  1533. \x{1e60}\x{1e61}\x{1e9b}
  1534. /\x{1e61}+/i,utf
  1535. \x{1e60}\x{1e61}\x{1e9b}
  1536. /\x{1e9b}+/i,utf
  1537. \x{1e60}\x{1e61}\x{1e9b}
  1538. /\x{1e9e}+/i,utf
  1539. \x{1e9e}\x{00df}
  1540. /\x{00df}+/i,utf
  1541. \x{1e9e}\x{00df}
  1542. /\x{1f88}+/i,utf
  1543. \x{1f88}\x{1f80}
  1544. /\x{1f80}+/i,utf
  1545. \x{1f88}\x{1f80}
  1546. # Perl 5.12.4 gets these wrong, but 5.15.3 is OK
  1547. /\x{004b}+/i,utf
  1548. \x{004b}\x{006b}\x{212a}
  1549. /\x{006b}+/i,utf
  1550. \x{004b}\x{006b}\x{212a}
  1551. /\x{212a}+/i,utf
  1552. \x{004b}\x{006b}\x{212a}
  1553. /\x{0053}+/i,utf
  1554. \x{0053}\x{0073}\x{017f}
  1555. /\x{0073}+/i,utf
  1556. \x{0053}\x{0073}\x{017f}
  1557. /\x{017f}+/i,utf
  1558. \x{0053}\x{0073}\x{017f}
  1559. /^\p{Any}*\d{4}/utf
  1560. 1234
  1561. \= Expect no match
  1562. 123
  1563. /^\X*\w{4}/utf
  1564. 1234
  1565. \= Expect no match
  1566. 123
  1567. /^A\s+Z/utf,ucp
  1568. A\x{2005}Z
  1569. A\x{85}\x{2005}Z
  1570. /^A[\s]+Z/utf,ucp
  1571. A\x{2005}Z
  1572. A\x{85}\x{2005}Z
  1573. /^[[:graph:]]+$/utf,ucp
  1574. Letter:ABC
  1575. Mark:\x{300}\x{1d172}\x{1d17b}
  1576. Number:9\x{660}
  1577. Punctuation:\x{66a},;
  1578. Symbol:\x{6de}<>\x{fffc}
  1579. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  1580. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  1581. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  1582. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  1583. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  1584. \x{feff}
  1585. \x{fff9}\x{fffa}\x{fffb}
  1586. \x{110bd}
  1587. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  1588. \x{e0001}
  1589. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  1590. \= Expect no match
  1591. \x{09}
  1592. \x{0a}
  1593. \x{1D}
  1594. \x{20}
  1595. \x{85}
  1596. \x{a0}
  1597. \x{1680}
  1598. \x{2028}
  1599. \x{2029}
  1600. \x{202f}
  1601. \x{2065}
  1602. \x{3000}
  1603. \x{e0002}
  1604. \x{e001f}
  1605. \x{e0080}
  1606. /^[[:print:]]+$/utf,ucp
  1607. Space: \x{a0}
  1608. \x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
  1609. \x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
  1610. \x{202f}\x{205f}
  1611. \x{3000}
  1612. Letter:ABC
  1613. Mark:\x{300}\x{1d172}\x{1d17b}
  1614. Number:9\x{660}
  1615. Punctuation:\x{66a},;
  1616. Symbol:\x{6de}<>\x{fffc}
  1617. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  1618. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  1619. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  1620. \x{202f}
  1621. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  1622. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  1623. \x{feff}
  1624. \x{fff9}\x{fffa}\x{fffb}
  1625. \x{110bd}
  1626. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  1627. \x{e0001}
  1628. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  1629. \= Expect no match
  1630. \x{09}
  1631. \x{1D}
  1632. \x{85}
  1633. \x{2028}
  1634. \x{2029}
  1635. \x{2065}
  1636. \x{e0002}
  1637. \x{e001f}
  1638. \x{e0080}
  1639. /^[[:punct:]]+$/utf,ucp
  1640. \$+<=>^`|~
  1641. !\"#%&'()*,-./:;?@[\\]_{}
  1642. \x{a1}\x{a7}
  1643. \x{37e}
  1644. \= Expect no match
  1645. abcde
  1646. /^[[:^graph:]]+$/utf,ucp
  1647. \x{09}\x{0a}\x{1D}\x{20}\x{85}\x{a0}\x{1680}
  1648. \x{2028}\x{2029}\x{202f}\x{2065}
  1649. \x{3000}\x{e0002}\x{e001f}\x{e0080}
  1650. \= Expect no match
  1651. Letter:ABC
  1652. Mark:\x{300}\x{1d172}\x{1d17b}
  1653. Number:9\x{660}
  1654. Punctuation:\x{66a},;
  1655. Symbol:\x{6de}<>\x{fffc}
  1656. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  1657. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  1658. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  1659. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  1660. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  1661. \x{feff}
  1662. \x{fff9}\x{fffa}\x{fffb}
  1663. \x{110bd}
  1664. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  1665. \x{e0001}
  1666. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  1667. /^[[:^print:]]+$/utf,ucp
  1668. \x{09}\x{1D}\x{85}\x{2028}\x{2029}\x{2065}
  1669. \x{e0002}\x{e001f}\x{e0080}
  1670. \= Expect no match
  1671. Space: \x{a0}
  1672. \x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
  1673. \x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
  1674. \x{202f}\x{205f}
  1675. \x{3000}
  1676. Letter:ABC
  1677. Mark:\x{300}\x{1d172}\x{1d17b}
  1678. Number:9\x{660}
  1679. Punctuation:\x{66a},;
  1680. Symbol:\x{6de}<>\x{fffc}
  1681. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  1682. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  1683. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  1684. \x{202f}
  1685. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  1686. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  1687. \x{feff}
  1688. \x{fff9}\x{fffa}\x{fffb}
  1689. \x{110bd}
  1690. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  1691. \x{e0001}
  1692. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  1693. /^[[:^punct:]]+$/utf,ucp
  1694. abcde
  1695. \= Expect no match
  1696. \$+<=>^`|~
  1697. !\"#%&'()*,-./:;?@[\\]_{}
  1698. \x{a1}\x{a7}
  1699. \x{37e}
  1700. /[RST]+/i,utf,ucp
  1701. Ss\x{17f}
  1702. /[R-T]+/i,utf,ucp
  1703. Ss\x{17f}
  1704. /[q-u]+/i,utf,ucp
  1705. Ss\x{17f}
  1706. /^s?c/im,utf
  1707. scat
  1708. # The next four tests are for repeated caseless back references when the
  1709. # code unit length of the matched text is different to that of the original
  1710. # group in the UTF-8 case.
  1711. /^(\x{23a})\1*(.)/i,utf
  1712. \x{23a}\x{23a}\x{23a}\x{23a}
  1713. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  1714. \x{23a}\x{23a}\x{2c65}\x{23a}
  1715. /^(\x{23a})\1*(..)/i,utf
  1716. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  1717. \x{23a}\x{23a}\x{2c65}\x{23a}
  1718. /^(\x{23a})\1*(...)/i,utf
  1719. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  1720. \x{23a}\x{23a}\x{2c65}\x{23a}
  1721. /^(\x{23a})\1*(....)/i,utf
  1722. \= Expect no match
  1723. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  1724. \x{23a}\x{23a}\x{2c65}\x{23a}
  1725. /[A-`]/i,utf
  1726. abcdefghijklmno
  1727. /[\S\V\H]/utf
  1728. /[^\p{Any}]*+x/utf
  1729. x
  1730. /[[:punct:]]/utf,ucp
  1731. \x{b4}
  1732. /[[:^ascii:]]/utf,ucp
  1733. \x{100}
  1734. \x{200}
  1735. \x{300}
  1736. \x{37e}
  1737. \= Expect no match
  1738. aa
  1739. 99
  1740. /[[:^ascii:]\w]/utf,ucp
  1741. aa
  1742. 99
  1743. gg
  1744. \x{100}
  1745. \x{200}
  1746. \x{300}
  1747. \x{37e}
  1748. /[\w[:^ascii:]]/utf,ucp
  1749. aa
  1750. 99
  1751. gg
  1752. \x{100}
  1753. \x{200}
  1754. \x{300}
  1755. \x{37e}
  1756. /[^[:ascii:]\W]/utf,ucp
  1757. \x{100}
  1758. \x{200}
  1759. \= Expect no match
  1760. aa
  1761. 99
  1762. gg
  1763. \x{37e}
  1764. /[^[:^ascii:]\d]/utf,ucp
  1765. a
  1766. ~
  1767. \a
  1768. \x{7f}
  1769. \= Expect no match
  1770. 0
  1771. \x{389}
  1772. \x{20ac}
  1773. /(?=.*b)\pL/
  1774. 11bb
  1775. /(?(?=.*b)(?=.*b)\pL|.*c)/
  1776. 11bb
  1777. /^\x{123}+?$/utf,no_auto_possess
  1778. \x{123}\x{123}\x{123}
  1779. /^\x{123}+?$/i,utf,no_auto_possess
  1780. \x{123}\x{122}\x{123}
  1781. \= Expect no match
  1782. \x{123}\x{124}\x{123}
  1783. /\N{U+1234}/utf
  1784. \x{1234}
  1785. /[\N{U+1234}]/utf
  1786. \x{1234}
  1787. # Test the full list of Unicode "Pattern White Space" characters that are to
  1788. # be ignored by /x. The pattern lines below may show up oddly in text editors
  1789. # or when listed to the screen. Note that characters such as U+2002, which are
  1790. # matched as space by \h and \v are *not* "Pattern White Space".
  1791. /A…‎‏

B/x,utf
  1792. AB
  1793. /A B/x,utf
  1794. A\x{2002}B
  1795. \= Expect no match
  1796. AB
  1797. # -------
  1798. /[^\x{100}-\x{ffff}]*[\x80-\xff]/utf
  1799. \x{99}\x{99}\x{99}
  1800. /[^\x{100}-\x{ffff}ABC]*[\x80-\xff]/utf
  1801. \x{99}\x{99}\x{99}
  1802. /[^\x{100}-\x{ffff}]*[\x80-\xff]/i,utf
  1803. \x{99}\x{99}\x{99}
  1804. # Script run tests
  1805. /^(*script_run:.{4})/utf
  1806. abcd Latin x4
  1807. \x{2e80}\x{2fa1d}\x{3041}\x{30a1} Han Han Hiragana Katakana
  1808. \x{3041}\x{30a1}\x{3007}\x{3007} Hiragana Katakana Han Han
  1809. \x{30a1}\x{3041}\x{3007}\x{3007} Katakana Hiragana Han Han
  1810. \x{1100}\x{2e80}\x{2e80}\x{1101} Hangul Han Han Hangul
  1811. \x{2e80}\x{3105}\x{2e80}\x{3105} Han Bopomofo Han Bopomofo
  1812. \x{02ea}\x{2e80}\x{2e80}\x{3105} Bopomofo-Sk Han Han Bopomofo
  1813. \x{3105}\x{2e80}\x{2e80}\x{3105} Bopomofo Han Han Bopomofo
  1814. \x{0300}cd! Inherited Latin Latin Common
  1815. \x{0391}12\x{03a9} Greek Common-digits Greek
  1816. \x{0400}12\x{fe2f} Cyrillic Common-digits Cyrillic
  1817. \x{0531}12\x{fb17} Armenian Common-digits Armenian
  1818. \x{0591}12\x{fb4f} Hebrew Common-digits Hebrew
  1819. \x{0600}12\x{1eef1} Arabic Common-digits Arabic
  1820. \x{0600}\x{0660}\x{0669}\x{1eef1} Arabic Arabic-digits Arabic
  1821. \x{0700}12\x{086a} Syriac Common-digits Syriac
  1822. \x{1200}12\x{ab2e} Ethiopic Common-digits Ethiopic
  1823. \x{1680}12\x{169c} Ogham Common-digits Ogham
  1824. \x{3041}12\x{3041} Hiragana Common-digits Hiragana
  1825. \x{0980}\x{09e6}\x{09e7}\x{0993} Bengali Bengali-digits Bengali
  1826. !cde Common Latin Latin Latin
  1827. A..B Latin Common Common Latin
  1828. 0abc Ascii-digit Latin Latin Latin
  1829. 1\x{0700}\x{0700}\x{0700} Ascii-digit Syriac x 3
  1830. \x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
  1831. \= Expect no match
  1832. a\x{370}bcd Latin Greek Latin Latin
  1833. \x{1100}\x{02ea}\x{02ea}\x{02ea} Hangul Bopomofo x3
  1834. \x{02ea}\x{02ea}\x{02ea}\x{1100} Bopomofo x3 Hangul
  1835. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  1836. \x{0391}\x{09e6}\x{09e7}\x{03a9} Greek Bengali digits Greek
  1837. \x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
  1838. \x{0600}\x{0669}7\x{1eef1} Arabic Arabic-digit ascii-digit Arabic
  1839. A5\x{ff19}B Latin Common-ascii/notascii-digits Latin
  1840. \x{0300}cd\x{0391} Inherited Latin Latin Greek
  1841. !cd\x{0391} Common Latin Latin Greek
  1842. \x{1A80}\x{1A90}\x{1a40}\x{1a41} Tai Tham Hora digit, Tham digit, letters
  1843. A\x{1d7ce}\x{1d7ff}B Common fancy-common-2-sets-digits Common
  1844. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1845. /^(*sr:.{4}|..)/utf
  1846. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1847. /^(*atomic_script_run:.{4}|..)/utf
  1848. \= Expect no match
  1849. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1850. /^(*asr:.*)/utf
  1851. \= Expect no match
  1852. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1853. /^(?>(*sr:.*))/utf
  1854. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1855. /^(*sr:.*)/utf
  1856. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  1857. \x{10fffd}\x{10fffd}\x{10fffd} Private use (Unknown)
  1858. /^(*sr:\x{2e80}*)/utf
  1859. \x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
  1860. /^(*sr:\x{2e80}*)\x{2e80}/utf
  1861. \x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
  1862. /^(*sr:.*)Test/utf
  1863. Test script run on an empty string
  1864. /^(*sr:(.{2})){2}/utf
  1865. \x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
  1866. \x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
  1867. \x{1A80}\x{1a40}\x{1A90}\x{1a41} Tai Tham Hora digit, letter, Tham digit, letter
  1868. \= Expect no match
  1869. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  1870. /^(*sr:\S*)/utf
  1871. \x{1cf4}\x{20f0}\x{900}\x{11305} [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Gran
  1872. \x{1cf4}\x{20f0}\x{11305}\x{900} [Dev,Gran,Kan] [Dev,Gran,Lat] Gran Dev
  1873. \x{1cf4}\x{20f0}\x{900}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Lat
  1874. \x{1cf4}\x{20f0}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Lat
  1875. \x{20f0}ABC [Dev,Gran,Lat] Lat
  1876. XYZ\x{20f0}ABC Lat [Dev,Gran,Lat] Lat
  1877. \x{a36}\x{a33}\x{900} [Dev,...] [Dev,...] Dev
  1878. \x{3001}\x{2e80}\x{3041}\x{30a1} [Bopo, Han, etc] Han Hira Kata
  1879. \x{3001}\x{30a1}\x{2e80}\x{3041} [Bopo, Han, etc] Kata Han Hira
  1880. \x{3001}\x{3105}\x{2e80}\x{1101} [Bopo, Han, etc] Bopomofo Han Hangul
  1881. \x{3105}\x{3001}\x{2e80}\x{1101} Bopomofo [Bopo, Han, etc] Han Hangul
  1882. \x{3031}\x{3041}\x{30a1}\x{2e80} [Hira Kata] Hira Kata Han
  1883. \x{060c}\x{06d4}\x{0600}\x{10d00}\x{0700} [Arab Rohg Syrc Thaa] [Arab Rohg] Arab Rohg Syrc
  1884. \x{060c}\x{06d4}\x{0700}\x{0600}\x{10d00} [Arab Rohg Syrc Thaa] [Arab Rohg] Syrc Arab Rohg
  1885. \x{2e80}\x{3041}\x{3001}\x{3031}\x{2e80} Han Hira [Bopo, Han, etc] [Hira Kata] Han
  1886. /(?<!)(*sr:)/
  1887. /(?<!X(*sr:B)C)/
  1888. /(?<=abc(?=X(*sr:BCY)Z)XBCYZ)./
  1889. abcXBCYZ!
  1890. /(?<=abc(?=X(*sr:BXY)CCC)XBXYCCC)./
  1891. abcXBXYCCC!
  1892. /^(*sr:\S*)/utf
  1893. \x{10d00}\x{10d00}\x{06d4} Rohingya Rohingya Arabic-full-stop
  1894. \x{06d4}\x{10d00}\x{10d00} Arabic-full-stop Rohingya Rohingya
  1895. \x{10d00}\x{10d00}\x{0363} Rohingya Rohingya Inherited-extend-Latin
  1896. \x{0363}\x{10d00}\x{10d00} Inherited-extend-Latin Rohingya Rohingya
  1897. AB\x{0363} Latin Latin Inherited-extend-Latin
  1898. \x{0363}AB Inherited-extend-Latin Latin Latin
  1899. AB\x{1cf7} Latin Latin Common-extended-Beng
  1900. \x{1cf7}AB Common-extend-Beng Latin Latin
  1901. \x{1cf7}\x{0993} Common-extend-Beng Bengali
  1902. A\x{1abe}BC Test enclosing mark
  1903. \x{0370}\x{1abe}\x{0371} Which can occur with any script (Greek here)
  1904. \x{3001}\x{adf9}\x{3001} [.. Hangul ..] Hangul [.. Hangul ..]
  1905. \x{3400}\x{3001}XXX Han [Han etc.]
  1906. \x{3400}\x{1cd5} Han [Bengali Devanagari]
  1907. \x{ac01}\x{3400} Hangul [.. Hangul ..]
  1908. \x{ac01}\x{1cd5} Hangul [Bengali Devanagari]
  1909. \x{102e0}\x{06d4}\x{1ee4d} [Arabic Coptic] [Arab Rohingya] Arabic
  1910. \x{102e0}\x{06d4}\x{2cc9} [Arabic Coptic] [Arab Rohingya] Coptic
  1911. \x{102e0}\x{06d4}\x{10d30} [Arabic Coptic] [Arab Rohingya] Rohingya
  1912. # Test loop breaking for empty string match
  1913. /^(*sr:A|)*BCD/utf
  1914. AABCD
  1915. ABCD
  1916. BCD
  1917. # The use of (*ACCEPT) breaks script run checking
  1918. /^(*sr:.*(*ACCEPT)ZZ)/utf
  1919. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  1920. # -------
  1921. # Test group names containing non-ASCII letters and digits
  1922. /(?'ABáC'...)\g{ABáC}/utf
  1923. abcabcdefg
  1924. /(?'XʰABC'...)/utf
  1925. xyzpq
  1926. /(?'XאABC'...)/utf
  1927. 12345
  1928. /(?'XᾈABC'...)/utf
  1929. %^&*(...
  1930. /(?'𐨐ABC'...)/utf
  1931. abcde
  1932. /^(?'אABC'...)(?&אABC)(?P=אABC)/utf
  1933. 123123123456
  1934. /^(?'אABC'...)(?&אABC)/utf
  1935. 123123123456
  1936. /\X*/
  1937. \xF3aaa\xE4\xEA\xEB\xFEa
  1938. /Я/i,utf
  1939. \x{42f}
  1940. \x{44f}
  1941. /(?=Я)/i,utf
  1942. \x{42f}
  1943. \x{44f}
  1944. # End of testinput4