testoutput4 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578
  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. 0: acb
  13. a\x7fb
  14. 0: a\x{7f}b
  15. a\x{100}b
  16. 0: a\x{100}b
  17. \= Expect no match
  18. a\nb
  19. No match
  20. /a(.{3})b/utf
  21. a\x{4000}xyb
  22. 0: a\x{4000}xyb
  23. 1: \x{4000}xy
  24. a\x{4000}\x7fyb
  25. 0: a\x{4000}\x{7f}yb
  26. 1: \x{4000}\x{7f}y
  27. a\x{4000}\x{100}yb
  28. 0: a\x{4000}\x{100}yb
  29. 1: \x{4000}\x{100}y
  30. \= Expect no match
  31. a\x{4000}b
  32. No match
  33. ac\ncb
  34. No match
  35. /a(.*?)(.)/
  36. a\xc0\x88b
  37. 0: a\xc0
  38. 1:
  39. 2: \xc0
  40. /a(.*?)(.)/utf
  41. a\x{100}b
  42. 0: a\x{100}
  43. 1:
  44. 2: \x{100}
  45. /a(.*)(.)/
  46. a\xc0\x88b
  47. 0: a\xc0\x88b
  48. 1: \xc0\x88
  49. 2: b
  50. /a(.*)(.)/utf
  51. a\x{100}b
  52. 0: a\x{100}b
  53. 1: \x{100}
  54. 2: b
  55. /a(.)(.)/
  56. a\xc0\x92bcd
  57. 0: a\xc0\x92
  58. 1: \xc0
  59. 2: \x92
  60. /a(.)(.)/utf
  61. a\x{240}bcd
  62. 0: a\x{240}b
  63. 1: \x{240}
  64. 2: b
  65. /a(.?)(.)/
  66. a\xc0\x92bcd
  67. 0: a\xc0\x92
  68. 1: \xc0
  69. 2: \x92
  70. /a(.?)(.)/utf
  71. a\x{240}bcd
  72. 0: a\x{240}b
  73. 1: \x{240}
  74. 2: b
  75. /a(.??)(.)/
  76. a\xc0\x92bcd
  77. 0: a\xc0
  78. 1:
  79. 2: \xc0
  80. /a(.??)(.)/utf
  81. a\x{240}bcd
  82. 0: a\x{240}
  83. 1:
  84. 2: \x{240}
  85. /a(.{3})b/utf
  86. a\x{1234}xyb
  87. 0: a\x{1234}xyb
  88. 1: \x{1234}xy
  89. a\x{1234}\x{4321}yb
  90. 0: a\x{1234}\x{4321}yb
  91. 1: \x{1234}\x{4321}y
  92. a\x{1234}\x{4321}\x{3412}b
  93. 0: a\x{1234}\x{4321}\x{3412}b
  94. 1: \x{1234}\x{4321}\x{3412}
  95. \= Expect no match
  96. a\x{1234}b
  97. No match
  98. ac\ncb
  99. No match
  100. /a(.{3,})b/utf
  101. a\x{1234}xyb
  102. 0: a\x{1234}xyb
  103. 1: \x{1234}xy
  104. a\x{1234}\x{4321}yb
  105. 0: a\x{1234}\x{4321}yb
  106. 1: \x{1234}\x{4321}y
  107. a\x{1234}\x{4321}\x{3412}b
  108. 0: a\x{1234}\x{4321}\x{3412}b
  109. 1: \x{1234}\x{4321}\x{3412}
  110. axxxxbcdefghijb
  111. 0: axxxxbcdefghijb
  112. 1: xxxxbcdefghij
  113. a\x{1234}\x{4321}\x{3412}\x{3421}b
  114. 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
  115. 1: \x{1234}\x{4321}\x{3412}\x{3421}
  116. \= Expect no match
  117. a\x{1234}b
  118. No match
  119. /a(.{3,}?)b/utf
  120. a\x{1234}xyb
  121. 0: a\x{1234}xyb
  122. 1: \x{1234}xy
  123. a\x{1234}\x{4321}yb
  124. 0: a\x{1234}\x{4321}yb
  125. 1: \x{1234}\x{4321}y
  126. a\x{1234}\x{4321}\x{3412}b
  127. 0: a\x{1234}\x{4321}\x{3412}b
  128. 1: \x{1234}\x{4321}\x{3412}
  129. axxxxbcdefghijb
  130. 0: axxxxb
  131. 1: xxxx
  132. a\x{1234}\x{4321}\x{3412}\x{3421}b
  133. 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
  134. 1: \x{1234}\x{4321}\x{3412}\x{3421}
  135. \= Expect no match
  136. a\x{1234}b
  137. No match
  138. /a(.{3,5})b/utf
  139. a\x{1234}xyb
  140. 0: a\x{1234}xyb
  141. 1: \x{1234}xy
  142. a\x{1234}\x{4321}yb
  143. 0: a\x{1234}\x{4321}yb
  144. 1: \x{1234}\x{4321}y
  145. a\x{1234}\x{4321}\x{3412}b
  146. 0: a\x{1234}\x{4321}\x{3412}b
  147. 1: \x{1234}\x{4321}\x{3412}
  148. axxxxbcdefghijb
  149. 0: axxxxb
  150. 1: xxxx
  151. a\x{1234}\x{4321}\x{3412}\x{3421}b
  152. 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
  153. 1: \x{1234}\x{4321}\x{3412}\x{3421}
  154. axbxxbcdefghijb
  155. 0: axbxxb
  156. 1: xbxx
  157. axxxxxbcdefghijb
  158. 0: axxxxxb
  159. 1: xxxxx
  160. \= Expect no match
  161. a\x{1234}b
  162. No match
  163. axxxxxxbcdefghijb
  164. No match
  165. /a(.{3,5}?)b/utf
  166. a\x{1234}xyb
  167. 0: a\x{1234}xyb
  168. 1: \x{1234}xy
  169. a\x{1234}\x{4321}yb
  170. 0: a\x{1234}\x{4321}yb
  171. 1: \x{1234}\x{4321}y
  172. a\x{1234}\x{4321}\x{3412}b
  173. 0: a\x{1234}\x{4321}\x{3412}b
  174. 1: \x{1234}\x{4321}\x{3412}
  175. axxxxbcdefghijb
  176. 0: axxxxb
  177. 1: xxxx
  178. a\x{1234}\x{4321}\x{3412}\x{3421}b
  179. 0: a\x{1234}\x{4321}\x{3412}\x{3421}b
  180. 1: \x{1234}\x{4321}\x{3412}\x{3421}
  181. axbxxbcdefghijb
  182. 0: axbxxb
  183. 1: xbxx
  184. axxxxxbcdefghijb
  185. 0: axxxxxb
  186. 1: xxxxx
  187. \= Expect no match
  188. a\x{1234}b
  189. No match
  190. axxxxxxbcdefghijb
  191. No match
  192. /^[a\x{c0}]/utf
  193. \= Expect no match
  194. \x{100}
  195. No match
  196. /(?<=aXb)cd/utf
  197. aXbcd
  198. 0: cd
  199. /(?<=a\x{100}b)cd/utf
  200. a\x{100}bcd
  201. 0: cd
  202. /(?<=a\x{100000}b)cd/utf
  203. a\x{100000}bcd
  204. 0: cd
  205. /(?:\x{100}){3}b/utf
  206. \x{100}\x{100}\x{100}b
  207. 0: \x{100}\x{100}\x{100}b
  208. \= Expect no match
  209. \x{100}\x{100}b
  210. No match
  211. /\x{ab}/utf
  212. \x{ab}
  213. 0: \x{ab}
  214. \xc2\xab
  215. 0: \x{ab}
  216. \= Expect no match
  217. \x00{ab}
  218. No match
  219. /(?<=(.))X/utf
  220. WXYZ
  221. 0: X
  222. 1: W
  223. \x{256}XYZ
  224. 0: X
  225. 1: \x{256}
  226. \= Expect no match
  227. XYZ
  228. No match
  229. /[^a]+/g,utf
  230. bcd
  231. 0: bcd
  232. \x{100}aY\x{256}Z
  233. 0: \x{100}
  234. 0: Y\x{256}Z
  235. /^[^a]{2}/utf
  236. \x{100}bc
  237. 0: \x{100}b
  238. /^[^a]{2,}/utf
  239. \x{100}bcAa
  240. 0: \x{100}bcA
  241. /^[^a]{2,}?/utf
  242. \x{100}bca
  243. 0: \x{100}b
  244. /[^a]+/gi,utf
  245. bcd
  246. 0: bcd
  247. \x{100}aY\x{256}Z
  248. 0: \x{100}
  249. 0: Y\x{256}Z
  250. /^[^a]{2}/i,utf
  251. \x{100}bc
  252. 0: \x{100}b
  253. /^[^a]{2,}/i,utf
  254. \x{100}bcAa
  255. 0: \x{100}bc
  256. /^[^a]{2,}?/i,utf
  257. \x{100}bca
  258. 0: \x{100}b
  259. /\x{100}{0,0}/utf
  260. abcd
  261. 0:
  262. /\x{100}?/utf
  263. abcd
  264. 0:
  265. \x{100}\x{100}
  266. 0: \x{100}
  267. /\x{100}{0,3}/utf
  268. \x{100}\x{100}
  269. 0: \x{100}\x{100}
  270. \x{100}\x{100}\x{100}\x{100}
  271. 0: \x{100}\x{100}\x{100}
  272. /\x{100}*/utf
  273. abce
  274. 0:
  275. \x{100}\x{100}\x{100}\x{100}
  276. 0: \x{100}\x{100}\x{100}\x{100}
  277. /\x{100}{1,1}/utf
  278. abcd\x{100}\x{100}\x{100}\x{100}
  279. 0: \x{100}
  280. /\x{100}{1,3}/utf
  281. abcd\x{100}\x{100}\x{100}\x{100}
  282. 0: \x{100}\x{100}\x{100}
  283. /\x{100}+/utf
  284. abcd\x{100}\x{100}\x{100}\x{100}
  285. 0: \x{100}\x{100}\x{100}\x{100}
  286. /\x{100}{3}/utf
  287. abcd\x{100}\x{100}\x{100}XX
  288. 0: \x{100}\x{100}\x{100}
  289. /\x{100}{3,5}/utf
  290. abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  291. 0: \x{100}\x{100}\x{100}\x{100}\x{100}
  292. /\x{100}{3,}/utf
  293. abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  294. 0: \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
  295. /(?<=a\x{100}{2}b)X/utf,aftertext
  296. Xyyya\x{100}\x{100}bXzzz
  297. 0: X
  298. 0+ zzz
  299. /\D*/utf
  300. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  301. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  302. /\D*/utf
  303. \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}
  304. 0: \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}
  305. /\D/utf
  306. 1X2
  307. 0: X
  308. 1\x{100}2
  309. 0: \x{100}
  310. />\S/utf
  311. > >X Y
  312. 0: >X
  313. > >\x{100} Y
  314. 0: >\x{100}
  315. /\d/utf
  316. \x{100}3
  317. 0: 3
  318. /\s/utf
  319. \x{100} X
  320. 0:
  321. /\D+/utf
  322. 12abcd34
  323. 0: abcd
  324. \= Expect no match
  325. 1234
  326. No match
  327. /\D{2,3}/utf
  328. 12abcd34
  329. 0: abc
  330. 12ab34
  331. 0: ab
  332. \= Expect no match
  333. 1234
  334. No match
  335. 12a34
  336. No match
  337. /\D{2,3}?/utf
  338. 12abcd34
  339. 0: ab
  340. 12ab34
  341. 0: ab
  342. \= Expect no match
  343. 1234
  344. No match
  345. 12a34
  346. No match
  347. /\d+/utf
  348. 12abcd34
  349. 0: 12
  350. /\d{2,3}/utf
  351. 12abcd34
  352. 0: 12
  353. 1234abcd
  354. 0: 123
  355. \= Expect no match
  356. 1.4
  357. No match
  358. /\d{2,3}?/utf
  359. 12abcd34
  360. 0: 12
  361. 1234abcd
  362. 0: 12
  363. \= Expect no match
  364. 1.4
  365. No match
  366. /\S+/utf
  367. 12abcd34
  368. 0: 12abcd34
  369. \= Expect no match
  370. \ \
  371. No match
  372. /\S{2,3}/utf
  373. 12abcd34
  374. 0: 12a
  375. 1234abcd
  376. 0: 123
  377. \= Expect no match
  378. \ \
  379. No match
  380. /\S{2,3}?/utf
  381. 12abcd34
  382. 0: 12
  383. 1234abcd
  384. 0: 12
  385. \= Expect no match
  386. \ \
  387. No match
  388. />\s+</utf,aftertext
  389. 12> <34
  390. 0: > <
  391. 0+ 34
  392. />\s{2,3}</utf,aftertext
  393. ab> <cd
  394. 0: > <
  395. 0+ cd
  396. ab> <ce
  397. 0: > <
  398. 0+ ce
  399. \= Expect no match
  400. ab> <cd
  401. No match
  402. />\s{2,3}?</utf,aftertext
  403. ab> <cd
  404. 0: > <
  405. 0+ cd
  406. ab> <ce
  407. 0: > <
  408. 0+ ce
  409. \= Expect no match
  410. ab> <cd
  411. No match
  412. /\w+/utf
  413. 12 34
  414. 0: 12
  415. \= Expect no match
  416. +++=*!
  417. No match
  418. /\w{2,3}/utf
  419. ab cd
  420. 0: ab
  421. abcd ce
  422. 0: abc
  423. \= Expect no match
  424. a.b.c
  425. No match
  426. /\w{2,3}?/utf
  427. ab cd
  428. 0: ab
  429. abcd ce
  430. 0: ab
  431. \= Expect no match
  432. a.b.c
  433. No match
  434. /\W+/utf
  435. 12====34
  436. 0: ====
  437. \= Expect no match
  438. abcd
  439. No match
  440. /\W{2,3}/utf
  441. ab====cd
  442. 0: ===
  443. ab==cd
  444. 0: ==
  445. \= Expect no match
  446. a.b.c
  447. No match
  448. /\W{2,3}?/utf
  449. ab====cd
  450. 0: ==
  451. ab==cd
  452. 0: ==
  453. \= Expect no match
  454. a.b.c
  455. No match
  456. /[\x{100}]/utf
  457. \x{100}
  458. 0: \x{100}
  459. Z\x{100}
  460. 0: \x{100}
  461. \x{100}Z
  462. 0: \x{100}
  463. /[Z\x{100}]/utf
  464. Z\x{100}
  465. 0: Z
  466. \x{100}
  467. 0: \x{100}
  468. \x{100}Z
  469. 0: \x{100}
  470. /[\x{100}\x{200}]/utf
  471. ab\x{100}cd
  472. 0: \x{100}
  473. ab\x{200}cd
  474. 0: \x{200}
  475. /[\x{100}-\x{200}]/utf
  476. ab\x{100}cd
  477. 0: \x{100}
  478. ab\x{200}cd
  479. 0: \x{200}
  480. ab\x{111}cd
  481. 0: \x{111}
  482. /[z-\x{200}]/utf
  483. ab\x{100}cd
  484. 0: \x{100}
  485. ab\x{200}cd
  486. 0: \x{200}
  487. ab\x{111}cd
  488. 0: \x{111}
  489. abzcd
  490. 0: z
  491. ab|cd
  492. 0: |
  493. /[Q\x{100}\x{200}]/utf
  494. ab\x{100}cd
  495. 0: \x{100}
  496. ab\x{200}cd
  497. 0: \x{200}
  498. Q?
  499. 0: Q
  500. /[Q\x{100}-\x{200}]/utf
  501. ab\x{100}cd
  502. 0: \x{100}
  503. ab\x{200}cd
  504. 0: \x{200}
  505. ab\x{111}cd
  506. 0: \x{111}
  507. Q?
  508. 0: Q
  509. /[Qz-\x{200}]/utf
  510. ab\x{100}cd
  511. 0: \x{100}
  512. ab\x{200}cd
  513. 0: \x{200}
  514. ab\x{111}cd
  515. 0: \x{111}
  516. abzcd
  517. 0: z
  518. ab|cd
  519. 0: |
  520. Q?
  521. 0: Q
  522. /[\x{100}\x{200}]{1,3}/utf
  523. ab\x{100}cd
  524. 0: \x{100}
  525. ab\x{200}cd
  526. 0: \x{200}
  527. ab\x{200}\x{100}\x{200}\x{100}cd
  528. 0: \x{200}\x{100}\x{200}
  529. /[\x{100}\x{200}]{1,3}?/utf
  530. ab\x{100}cd
  531. 0: \x{100}
  532. ab\x{200}cd
  533. 0: \x{200}
  534. ab\x{200}\x{100}\x{200}\x{100}cd
  535. 0: \x{200}
  536. /[Q\x{100}\x{200}]{1,3}/utf
  537. ab\x{100}cd
  538. 0: \x{100}
  539. ab\x{200}cd
  540. 0: \x{200}
  541. ab\x{200}\x{100}\x{200}\x{100}cd
  542. 0: \x{200}\x{100}\x{200}
  543. /[Q\x{100}\x{200}]{1,3}?/utf
  544. ab\x{100}cd
  545. 0: \x{100}
  546. ab\x{200}cd
  547. 0: \x{200}
  548. ab\x{200}\x{100}\x{200}\x{100}cd
  549. 0: \x{200}
  550. /(?<=[\x{100}\x{200}])X/utf
  551. abc\x{200}X
  552. 0: X
  553. abc\x{100}X
  554. 0: X
  555. \= Expect no match
  556. X
  557. No match
  558. /(?<=[Q\x{100}\x{200}])X/utf
  559. abc\x{200}X
  560. 0: X
  561. abc\x{100}X
  562. 0: X
  563. abQX
  564. 0: X
  565. \= Expect no match
  566. X
  567. No match
  568. /(?<=[\x{100}\x{200}]{3})X/utf
  569. abc\x{100}\x{200}\x{100}X
  570. 0: X
  571. \= Expect no match
  572. abc\x{200}X
  573. No match
  574. X
  575. No match
  576. /[^\x{100}\x{200}]X/utf
  577. AX
  578. 0: AX
  579. \x{150}X
  580. 0: \x{150}X
  581. \x{500}X
  582. 0: \x{500}X
  583. \= Expect no match
  584. \x{100}X
  585. No match
  586. \x{200}X
  587. No match
  588. /[^Q\x{100}\x{200}]X/utf
  589. AX
  590. 0: AX
  591. \x{150}X
  592. 0: \x{150}X
  593. \x{500}X
  594. 0: \x{500}X
  595. \= Expect no match
  596. \x{100}X
  597. No match
  598. \x{200}X
  599. No match
  600. QX
  601. No match
  602. /[^\x{100}-\x{200}]X/utf
  603. AX
  604. 0: AX
  605. \x{500}X
  606. 0: \x{500}X
  607. \= Expect no match
  608. \x{100}X
  609. No match
  610. \x{150}X
  611. No match
  612. \x{200}X
  613. No match
  614. /[z-\x{100}]/i,utf
  615. z
  616. 0: z
  617. Z
  618. 0: Z
  619. \x{100}
  620. 0: \x{100}
  621. \= Expect no match
  622. \x{102}
  623. No match
  624. y
  625. No match
  626. /[\xFF]/
  627. >\xff<
  628. 0: \xff
  629. /[\xff]/utf
  630. >\x{ff}<
  631. 0: \x{ff}
  632. /[^\xFF]/
  633. XYZ
  634. 0: X
  635. /[^\xff]/utf
  636. XYZ
  637. 0: X
  638. \x{123}
  639. 0: \x{123}
  640. /^[ac]*b/utf
  641. \= Expect no match
  642. xb
  643. No match
  644. /^[ac\x{100}]*b/utf
  645. \= Expect no match
  646. xb
  647. No match
  648. /^[^x]*b/i,utf
  649. \= Expect no match
  650. xb
  651. No match
  652. /^[^x]*b/utf
  653. \= Expect no match
  654. xb
  655. No match
  656. /^\d*b/utf
  657. \= Expect no match
  658. xb
  659. No match
  660. /(|a)/g,utf
  661. catac
  662. 0:
  663. 1:
  664. 0:
  665. 1:
  666. 0: a
  667. 1: a
  668. 0:
  669. 1:
  670. 0:
  671. 1:
  672. 0: a
  673. 1: a
  674. 0:
  675. 1:
  676. 0:
  677. 1:
  678. a\x{256}a
  679. 0:
  680. 1:
  681. 0: a
  682. 1: a
  683. 0:
  684. 1:
  685. 0:
  686. 1:
  687. 0: a
  688. 1: a
  689. 0:
  690. 1:
  691. /^\x{85}$/i,utf
  692. \x{85}
  693. 0: \x{85}
  694. /^ሴ/utf
  695. 0: \x{1234}
  696. /^\ሴ/utf
  697. 0: \x{1234}
  698. /(?s)(.{1,5})/utf
  699. abcdefg
  700. 0: abcde
  701. 1: abcde
  702. ab
  703. 0: ab
  704. 1: ab
  705. /a*\x{100}*\w/utf
  706. a
  707. 0: a
  708. /\S\S/g,utf
  709. A\x{a3}BC
  710. 0: A\x{a3}
  711. 0: BC
  712. /\S{2}/g,utf
  713. A\x{a3}BC
  714. 0: A\x{a3}
  715. 0: BC
  716. /\W\W/g,utf
  717. +\x{a3}==
  718. 0: +\x{a3}
  719. 0: ==
  720. /\W{2}/g,utf
  721. +\x{a3}==
  722. 0: +\x{a3}
  723. 0: ==
  724. /\S/g,utf
  725. \x{442}\x{435}\x{441}\x{442}
  726. 0: \x{442}
  727. 0: \x{435}
  728. 0: \x{441}
  729. 0: \x{442}
  730. /[\S]/g,utf
  731. \x{442}\x{435}\x{441}\x{442}
  732. 0: \x{442}
  733. 0: \x{435}
  734. 0: \x{441}
  735. 0: \x{442}
  736. /\D/g,utf
  737. \x{442}\x{435}\x{441}\x{442}
  738. 0: \x{442}
  739. 0: \x{435}
  740. 0: \x{441}
  741. 0: \x{442}
  742. /[\D]/g,utf
  743. \x{442}\x{435}\x{441}\x{442}
  744. 0: \x{442}
  745. 0: \x{435}
  746. 0: \x{441}
  747. 0: \x{442}
  748. /\W/g,utf
  749. \x{2442}\x{2435}\x{2441}\x{2442}
  750. 0: \x{2442}
  751. 0: \x{2435}
  752. 0: \x{2441}
  753. 0: \x{2442}
  754. /[\W]/g,utf
  755. \x{2442}\x{2435}\x{2441}\x{2442}
  756. 0: \x{2442}
  757. 0: \x{2435}
  758. 0: \x{2441}
  759. 0: \x{2442}
  760. /[\S\s]*/utf
  761. abc\n\r\x{442}\x{435}\x{441}\x{442}xyz
  762. 0: abc\x{0a}\x{0d}\x{442}\x{435}\x{441}\x{442}xyz
  763. /[\x{41f}\S]/g,utf
  764. \x{442}\x{435}\x{441}\x{442}
  765. 0: \x{442}
  766. 0: \x{435}
  767. 0: \x{441}
  768. 0: \x{442}
  769. /.[^\S]./g,utf
  770. abc def\x{442}\x{443}xyz\npqr
  771. 0: c d
  772. 0: z\x{0a}p
  773. /.[^\S\n]./g,utf
  774. abc def\x{442}\x{443}xyz\npqr
  775. 0: c d
  776. /[[:^alnum:]]/g,utf
  777. +\x{2442}
  778. 0: +
  779. 0: \x{2442}
  780. /[[:^alpha:]]/g,utf
  781. +\x{2442}
  782. 0: +
  783. 0: \x{2442}
  784. /[[:^ascii:]]/g,utf
  785. A\x{442}
  786. 0: \x{442}
  787. /[[:^blank:]]/g,utf
  788. A\x{442}
  789. 0: A
  790. 0: \x{442}
  791. /[[:^cntrl:]]/g,utf
  792. A\x{442}
  793. 0: A
  794. 0: \x{442}
  795. /[[:^digit:]]/g,utf
  796. A\x{442}
  797. 0: A
  798. 0: \x{442}
  799. /[[:^graph:]]/g,utf
  800. \x19\x{e01ff}
  801. 0: \x{19}
  802. 0: \x{e01ff}
  803. /[[:^lower:]]/g,utf
  804. A\x{422}
  805. 0: A
  806. 0: \x{422}
  807. /[[:^print:]]/g,utf
  808. \x{19}\x{e01ff}
  809. 0: \x{19}
  810. 0: \x{e01ff}
  811. /[[:^punct:]]/g,utf
  812. A\x{442}
  813. 0: A
  814. 0: \x{442}
  815. /[[:^space:]]/g,utf
  816. A\x{442}
  817. 0: A
  818. 0: \x{442}
  819. /[[:^upper:]]/g,utf
  820. a\x{442}
  821. 0: a
  822. 0: \x{442}
  823. /[[:^word:]]/g,utf
  824. +\x{2442}
  825. 0: +
  826. 0: \x{2442}
  827. /[[:^xdigit:]]/g,utf
  828. M\x{442}
  829. 0: M
  830. 0: \x{442}
  831. /[^ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉƊƋƎƏƐƑƓƔƖƗƘƜƝƟƠƢƤƦƧƩƬƮƯƱƲƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶǷǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁΆΈΉΊΌΎΏΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϒϓϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸԀԂԄԆԈԊԌԎԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈἉἊἋἌἍἎἏἘἙἚἛἜἝἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿὈὉὊὋὌὍὙὛὝὟὨὩὪὫὬὭὮὯᾸᾹᾺΆῈΈῊΉῘῙῚΊῨῩῪΎῬῸΌῺΏabcdefghijklmnopqrstuvwxyzªµºßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſƀƃƅƈƌƍƒƕƙƚƛƞơƣƥƨƪƫƭưƴƶƹƺƽƾƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳȴȵȶȷȸȹȼȿɀɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϐϑϕϖϗϙϛϝϟϡϣϥϧϩϫϭϯϰϱϲϳϵϸϻϼабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹԁԃԅԇԉԋԍԏաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևᴀᴁᴂᴃᴄᴅᴆᴇᴈᴉᴊᴋᴌᴍᴎᴏᴐᴑᴒᴓᴔᴕᴖᴗᴘᴙᴚᴛᴜᴝᴞᴟᴠᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬᵭᵮᵯᵰᵱᵲᵳᵴᵵᵶᵷᵹᵺᵻᵼᵽᵾᵿᶀᶁᶂᶃᶄᶅᶆᶇᶈᶉᶊᶋᶌᶍᶎᶏᶐᶑᶒᶓᶔᶕᶖᶗᶘᶙᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕẖẗẘẙẚẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀἁἂἃἄἅἆἇἐἑἒἓἔἕἠἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷὀὁὂὃὄὅὐὑὒὓὔὕὖὗὠὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾐᾑᾒᾓᾔᾕᾖᾗᾠᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιῂῃῄῆῇῐῑῒΐῖῗῠῡῢΰῤῥῦῧῲῳῴῶῷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥfffiflffifflſtstﬓﬔﬕﬖﬗ\d_^]/utf
  832. /^[^d]*?$/
  833. abc
  834. 0: abc
  835. /^[^d]*?$/utf
  836. abc
  837. 0: abc
  838. /^[^d]*?$/i
  839. abc
  840. 0: abc
  841. /^[^d]*?$/i,utf
  842. abc
  843. 0: abc
  844. /(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/utf
  845. /^[a\x{c0}]b/utf
  846. \x{c0}b
  847. 0: \x{c0}b
  848. /^([a\x{c0}]*?)aa/utf
  849. a\x{c0}aaaa/
  850. 0: a\x{c0}aa
  851. 1: a\x{c0}
  852. /^([a\x{c0}]*?)aa/utf
  853. a\x{c0}aaaa/
  854. 0: a\x{c0}aa
  855. 1: a\x{c0}
  856. a\x{c0}a\x{c0}aaa/
  857. 0: a\x{c0}a\x{c0}aa
  858. 1: a\x{c0}a\x{c0}
  859. /^([a\x{c0}]*)aa/utf
  860. a\x{c0}aaaa/
  861. 0: a\x{c0}aaaa
  862. 1: a\x{c0}aa
  863. a\x{c0}a\x{c0}aaa/
  864. 0: a\x{c0}a\x{c0}aaa
  865. 1: a\x{c0}a\x{c0}a
  866. /^([a\x{c0}]*)a\x{c0}/utf
  867. a\x{c0}aaaa/
  868. 0: a\x{c0}
  869. 1:
  870. a\x{c0}a\x{c0}aaa/
  871. 0: a\x{c0}a\x{c0}
  872. 1: a\x{c0}
  873. /A*/g,utf
  874. AAB\x{123}BAA
  875. 0: AA
  876. 0:
  877. 0:
  878. 0:
  879. 0: AA
  880. 0:
  881. /(abc)\1/i,utf
  882. \= Expect no match
  883. abc
  884. No match
  885. /(abc)\1/utf
  886. \= Expect no match
  887. abc
  888. No match
  889. /a(*:a\x{1234}b)/utf,mark
  890. abc
  891. 0: a
  892. MK: a\x{1234}b
  893. /a(*:a£b)/utf,mark
  894. abc
  895. 0: a
  896. MK: a\x{a3}b
  897. # Noncharacters
  898. /./utf
  899. \x{fffe}
  900. 0: \x{fffe}
  901. \x{ffff}
  902. 0: \x{ffff}
  903. \x{1fffe}
  904. 0: \x{1fffe}
  905. \x{1ffff}
  906. 0: \x{1ffff}
  907. \x{2fffe}
  908. 0: \x{2fffe}
  909. \x{2ffff}
  910. 0: \x{2ffff}
  911. \x{3fffe}
  912. 0: \x{3fffe}
  913. \x{3ffff}
  914. 0: \x{3ffff}
  915. \x{4fffe}
  916. 0: \x{4fffe}
  917. \x{4ffff}
  918. 0: \x{4ffff}
  919. \x{5fffe}
  920. 0: \x{5fffe}
  921. \x{5ffff}
  922. 0: \x{5ffff}
  923. \x{6fffe}
  924. 0: \x{6fffe}
  925. \x{6ffff}
  926. 0: \x{6ffff}
  927. \x{7fffe}
  928. 0: \x{7fffe}
  929. \x{7ffff}
  930. 0: \x{7ffff}
  931. \x{8fffe}
  932. 0: \x{8fffe}
  933. \x{8ffff}
  934. 0: \x{8ffff}
  935. \x{9fffe}
  936. 0: \x{9fffe}
  937. \x{9ffff}
  938. 0: \x{9ffff}
  939. \x{afffe}
  940. 0: \x{afffe}
  941. \x{affff}
  942. 0: \x{affff}
  943. \x{bfffe}
  944. 0: \x{bfffe}
  945. \x{bffff}
  946. 0: \x{bffff}
  947. \x{cfffe}
  948. 0: \x{cfffe}
  949. \x{cffff}
  950. 0: \x{cffff}
  951. \x{dfffe}
  952. 0: \x{dfffe}
  953. \x{dffff}
  954. 0: \x{dffff}
  955. \x{efffe}
  956. 0: \x{efffe}
  957. \x{effff}
  958. 0: \x{effff}
  959. \x{ffffe}
  960. 0: \x{ffffe}
  961. \x{fffff}
  962. 0: \x{fffff}
  963. \x{10fffe}
  964. 0: \x{10fffe}
  965. \x{10ffff}
  966. 0: \x{10ffff}
  967. \x{fdd0}
  968. 0: \x{fdd0}
  969. \x{fdd1}
  970. 0: \x{fdd1}
  971. \x{fdd2}
  972. 0: \x{fdd2}
  973. \x{fdd3}
  974. 0: \x{fdd3}
  975. \x{fdd4}
  976. 0: \x{fdd4}
  977. \x{fdd5}
  978. 0: \x{fdd5}
  979. \x{fdd6}
  980. 0: \x{fdd6}
  981. \x{fdd7}
  982. 0: \x{fdd7}
  983. \x{fdd8}
  984. 0: \x{fdd8}
  985. \x{fdd9}
  986. 0: \x{fdd9}
  987. \x{fdda}
  988. 0: \x{fdda}
  989. \x{fddb}
  990. 0: \x{fddb}
  991. \x{fddc}
  992. 0: \x{fddc}
  993. \x{fddd}
  994. 0: \x{fddd}
  995. \x{fdde}
  996. 0: \x{fdde}
  997. \x{fddf}
  998. 0: \x{fddf}
  999. \x{fde0}
  1000. 0: \x{fde0}
  1001. \x{fde1}
  1002. 0: \x{fde1}
  1003. \x{fde2}
  1004. 0: \x{fde2}
  1005. \x{fde3}
  1006. 0: \x{fde3}
  1007. \x{fde4}
  1008. 0: \x{fde4}
  1009. \x{fde5}
  1010. 0: \x{fde5}
  1011. \x{fde6}
  1012. 0: \x{fde6}
  1013. \x{fde7}
  1014. 0: \x{fde7}
  1015. \x{fde8}
  1016. 0: \x{fde8}
  1017. \x{fde9}
  1018. 0: \x{fde9}
  1019. \x{fdea}
  1020. 0: \x{fdea}
  1021. \x{fdeb}
  1022. 0: \x{fdeb}
  1023. \x{fdec}
  1024. 0: \x{fdec}
  1025. \x{fded}
  1026. 0: \x{fded}
  1027. \x{fdee}
  1028. 0: \x{fdee}
  1029. \x{fdef}
  1030. 0: \x{fdef}
  1031. /^\d*\w{4}/utf
  1032. 1234
  1033. 0: 1234
  1034. \= Expect no match
  1035. 123
  1036. No match
  1037. /^[^b]*\w{4}/utf
  1038. aaaa
  1039. 0: aaaa
  1040. \= Expect no match
  1041. aaa
  1042. No match
  1043. /^[^b]*\w{4}/i,utf
  1044. aaaa
  1045. 0: aaaa
  1046. \= Expect no match
  1047. aaa
  1048. No match
  1049. /^\x{100}*.{4}/utf
  1050. \x{100}\x{100}\x{100}\x{100}
  1051. 0: \x{100}\x{100}\x{100}\x{100}
  1052. \= Expect no match
  1053. \x{100}\x{100}\x{100}
  1054. No match
  1055. /^\x{100}*.{4}/i,utf
  1056. \x{100}\x{100}\x{100}\x{100}
  1057. 0: \x{100}\x{100}\x{100}\x{100}
  1058. \= Expect no match
  1059. \x{100}\x{100}\x{100}
  1060. No match
  1061. /^a+[a\x{200}]/utf
  1062. aa
  1063. 0: aa
  1064. /^.\B.\B./utf
  1065. \x{10123}\x{10124}\x{10125}
  1066. 0: \x{10123}\x{10124}\x{10125}
  1067. /^#[^\x{ffff}]#[^\x{ffff}]#[^\x{ffff}]#/utf
  1068. #\x{10000}#\x{100}#\x{10ffff}#
  1069. 0: #\x{10000}#\x{100}#\x{10ffff}#
  1070. # Unicode property support tests
  1071. /^\pC\pL\pM\pN\pP\pS\pZ</utf
  1072. \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
  1073. 0: \x{7f}\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
  1074. \np\x{300}9!\$ <
  1075. 0: \x{0a}p\x{300}9!$ <
  1076. \= Expect no match
  1077. ap\x{300}9!\$ <
  1078. No match
  1079. /^\PC/utf
  1080. X
  1081. 0: X
  1082. \= Expect no match
  1083. \x7f
  1084. No match
  1085. /^\PL/utf
  1086. 9
  1087. 0: 9
  1088. \= Expect no match
  1089. \x{c0}
  1090. No match
  1091. /^\PM/utf
  1092. X
  1093. 0: X
  1094. \= Expect no match
  1095. \x{30f}
  1096. No match
  1097. /^\PN/utf
  1098. X
  1099. 0: X
  1100. \= Expect no match
  1101. \x{660}
  1102. No match
  1103. /^\PP/utf
  1104. X
  1105. 0: X
  1106. \= Expect no match
  1107. \x{66c}
  1108. No match
  1109. /^\PS/utf
  1110. X
  1111. 0: X
  1112. \= Expect no match
  1113. \x{f01}
  1114. No match
  1115. /^\PZ/utf
  1116. X
  1117. 0: X
  1118. \= Expect no match
  1119. \x{1680}
  1120. No match
  1121. /^\p{Cc}/utf
  1122. \x{017}
  1123. 0: \x{17}
  1124. \x{09f}
  1125. 0: \x{9f}
  1126. \= Expect no match
  1127. \x{0600}
  1128. No match
  1129. /^\p{Cf}/utf
  1130. \x{601}
  1131. 0: \x{601}
  1132. \= Expect no match
  1133. \x{09f}
  1134. No match
  1135. /^\p{Cn}/utf
  1136. \x{e0000}
  1137. 0: \x{e0000}
  1138. \= Expect no match
  1139. \x{09f}
  1140. No match
  1141. /^\p{Co}/utf
  1142. \x{f8ff}
  1143. 0: \x{f8ff}
  1144. \= Expect no match
  1145. \x{09f}
  1146. No match
  1147. /^\p{Ll}/utf
  1148. a
  1149. 0: a
  1150. \= Expect no match
  1151. Z
  1152. No match
  1153. \x{e000}
  1154. No match
  1155. /^\p{Lm}/utf
  1156. \x{2b0}
  1157. 0: \x{2b0}
  1158. \= Expect no match
  1159. a
  1160. No match
  1161. /^\p{Lo}/utf
  1162. \x{1bb}
  1163. 0: \x{1bb}
  1164. \x{3400}
  1165. 0: \x{3400}
  1166. \x{3401}
  1167. 0: \x{3401}
  1168. \x{4d00}
  1169. 0: \x{4d00}
  1170. \x{4db4}
  1171. 0: \x{4db4}
  1172. \x{4db5}
  1173. 0: \x{4db5}
  1174. \x{4db6}
  1175. 0: \x{4db6}
  1176. \= Expect no match
  1177. a
  1178. No match
  1179. \x{2b0}
  1180. No match
  1181. /^\p{Lt}/utf
  1182. \x{1c5}
  1183. 0: \x{1c5}
  1184. \= Expect no match
  1185. a
  1186. No match
  1187. \x{2b0}
  1188. No match
  1189. /^\p{Lu}/utf
  1190. A
  1191. 0: A
  1192. \= Expect no match
  1193. \x{2b0}
  1194. No match
  1195. /^\p{Mc}/utf
  1196. \x{903}
  1197. 0: \x{903}
  1198. \= Expect no match
  1199. X
  1200. No match
  1201. \x{300}
  1202. No match
  1203. /^\p{Me}/utf
  1204. \x{488}
  1205. 0: \x{488}
  1206. \= Expect no match
  1207. X
  1208. No match
  1209. \x{903}
  1210. No match
  1211. \x{300}
  1212. No match
  1213. /^\p{Mn}/utf
  1214. \x{300}
  1215. 0: \x{300}
  1216. \= Expect no match
  1217. X
  1218. No match
  1219. \x{903}
  1220. No match
  1221. /^\p{Nd}+/utf
  1222. 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}\x{66a}
  1223. 0: 0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}
  1224. \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}\x{6fa}
  1225. 0: \x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}
  1226. \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}\x{970}
  1227. 0: \x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}
  1228. \= Expect no match
  1229. X
  1230. No match
  1231. /^\p{Nl}/utf
  1232. \x{16ee}
  1233. 0: \x{16ee}
  1234. \= Expect no match
  1235. X
  1236. No match
  1237. \x{966}
  1238. No match
  1239. /^\p{No}/utf
  1240. \x{b2}
  1241. 0: \x{b2}
  1242. \x{b3}
  1243. 0: \x{b3}
  1244. \= Expect no match
  1245. X
  1246. No match
  1247. \x{16ee}
  1248. No match
  1249. /^\p{Pc}/utf
  1250. \x5f
  1251. 0: _
  1252. \x{203f}
  1253. 0: \x{203f}
  1254. \= Expect no match
  1255. X
  1256. No match
  1257. -
  1258. No match
  1259. \x{58a}
  1260. No match
  1261. /^\p{Pd}/utf
  1262. -
  1263. 0: -
  1264. \x{58a}
  1265. 0: \x{58a}
  1266. \= Expect no match
  1267. X
  1268. No match
  1269. \x{203f}
  1270. No match
  1271. /^\p{Pe}/utf
  1272. )
  1273. 0: )
  1274. ]
  1275. 0: ]
  1276. }
  1277. 0: }
  1278. \x{f3b}
  1279. 0: \x{f3b}
  1280. \= Expect no match
  1281. X
  1282. No match
  1283. \x{203f}
  1284. No match
  1285. (
  1286. No match
  1287. [
  1288. No match
  1289. {
  1290. No match
  1291. \x{f3c}
  1292. No match
  1293. /^\p{Pf}/utf
  1294. \x{bb}
  1295. 0: \x{bb}
  1296. \x{2019}
  1297. 0: \x{2019}
  1298. \= Expect no match
  1299. X
  1300. No match
  1301. \x{203f}
  1302. No match
  1303. /^\p{Pi}/utf
  1304. \x{ab}
  1305. 0: \x{ab}
  1306. \x{2018}
  1307. 0: \x{2018}
  1308. \= Expect no match
  1309. X
  1310. No match
  1311. \x{203f}
  1312. No match
  1313. /^\p{Po}/utf
  1314. !
  1315. 0: !
  1316. \x{37e}
  1317. 0: \x{37e}
  1318. \= Expect no match
  1319. X
  1320. No match
  1321. \x{203f}
  1322. No match
  1323. /^\p{Ps}/utf
  1324. (
  1325. 0: (
  1326. [
  1327. 0: [
  1328. {
  1329. 0: {
  1330. \x{f3c}
  1331. 0: \x{f3c}
  1332. \= Expect no match
  1333. X
  1334. No match
  1335. )
  1336. No match
  1337. ]
  1338. No match
  1339. }
  1340. No match
  1341. \x{f3b}
  1342. No match
  1343. /^\p{Sk}/utf
  1344. \x{2c2}
  1345. 0: \x{2c2}
  1346. \= Expect no match
  1347. X
  1348. No match
  1349. \x{9f2}
  1350. No match
  1351. /^\p{Sm}+/utf
  1352. +<|~\x{ac}\x{2044}
  1353. 0: +<|~\x{ac}\x{2044}
  1354. \= Expect no match
  1355. X
  1356. No match
  1357. \x{9f2}
  1358. No match
  1359. /^\p{So}/utf
  1360. \x{a6}
  1361. 0: \x{a6}
  1362. \x{482}
  1363. 0: \x{482}
  1364. \= Expect no match
  1365. X
  1366. No match
  1367. \x{9f2}
  1368. No match
  1369. /^\p{Zl}/utf
  1370. \x{2028}
  1371. 0: \x{2028}
  1372. \= Expect no match
  1373. X
  1374. No match
  1375. \x{2029}
  1376. No match
  1377. /^\p{Zp}/utf
  1378. \x{2029}
  1379. 0: \x{2029}
  1380. \= Expect no match
  1381. X
  1382. No match
  1383. \x{2028}
  1384. No match
  1385. /\p{Nd}+(..)/utf
  1386. \x{660}\x{661}\x{662}ABC
  1387. 0: \x{660}\x{661}\x{662}AB
  1388. 1: AB
  1389. /\p{Nd}+?(..)/utf
  1390. \x{660}\x{661}\x{662}ABC
  1391. 0: \x{660}\x{661}\x{662}
  1392. 1: \x{661}\x{662}
  1393. /\p{Nd}{2,}(..)/utf
  1394. \x{660}\x{661}\x{662}ABC
  1395. 0: \x{660}\x{661}\x{662}AB
  1396. 1: AB
  1397. /\p{Nd}{2,}?(..)/utf
  1398. \x{660}\x{661}\x{662}ABC
  1399. 0: \x{660}\x{661}\x{662}A
  1400. 1: \x{662}A
  1401. /\p{Nd}*(..)/utf
  1402. \x{660}\x{661}\x{662}ABC
  1403. 0: \x{660}\x{661}\x{662}AB
  1404. 1: AB
  1405. /\p{Nd}*?(..)/utf
  1406. \x{660}\x{661}\x{662}ABC
  1407. 0: \x{660}\x{661}
  1408. 1: \x{660}\x{661}
  1409. /\p{Nd}{2}(..)/utf
  1410. \x{660}\x{661}\x{662}ABC
  1411. 0: \x{660}\x{661}\x{662}A
  1412. 1: \x{662}A
  1413. /\p{Nd}{2,3}(..)/utf
  1414. \x{660}\x{661}\x{662}ABC
  1415. 0: \x{660}\x{661}\x{662}AB
  1416. 1: AB
  1417. /\p{Nd}{2,3}?(..)/utf
  1418. \x{660}\x{661}\x{662}ABC
  1419. 0: \x{660}\x{661}\x{662}A
  1420. 1: \x{662}A
  1421. /\p{Nd}?(..)/utf
  1422. \x{660}\x{661}\x{662}ABC
  1423. 0: \x{660}\x{661}\x{662}
  1424. 1: \x{661}\x{662}
  1425. /\p{Nd}??(..)/utf
  1426. \x{660}\x{661}\x{662}ABC
  1427. 0: \x{660}\x{661}
  1428. 1: \x{660}\x{661}
  1429. /\p{Nd}*+(..)/utf
  1430. \x{660}\x{661}\x{662}ABC
  1431. 0: \x{660}\x{661}\x{662}AB
  1432. 1: AB
  1433. /\p{Nd}*+(...)/utf
  1434. \x{660}\x{661}\x{662}ABC
  1435. 0: \x{660}\x{661}\x{662}ABC
  1436. 1: ABC
  1437. /\p{Nd}*+(....)/utf
  1438. \= Expect no match
  1439. \x{660}\x{661}\x{662}ABC
  1440. No match
  1441. /(?<=A\p{Nd})XYZ/utf
  1442. A2XYZ
  1443. 0: XYZ
  1444. 123A5XYZPQR
  1445. 0: XYZ
  1446. ABA\x{660}XYZpqr
  1447. 0: XYZ
  1448. \= Expect no match
  1449. AXYZ
  1450. No match
  1451. XYZ
  1452. No match
  1453. /(?<!\pL)XYZ/utf
  1454. 1XYZ
  1455. 0: XYZ
  1456. AB=XYZ..
  1457. 0: XYZ
  1458. XYZ
  1459. 0: XYZ
  1460. \= Expect no match
  1461. WXYZ
  1462. No match
  1463. /[\P{Nd}]+/utf
  1464. abcd
  1465. 0: abcd
  1466. \= Expect no match
  1467. 1234
  1468. No match
  1469. /\D+/utf
  1470. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1471. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1472. \= Expect no match
  1473. 11111111111111111111111111111111111111111111111111111111111111111111111
  1474. No match
  1475. /\P{Nd}+/utf
  1476. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1477. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1478. \= Expect no match
  1479. 11111111111111111111111111111111111111111111111111111111111111111111111
  1480. No match
  1481. /[\D]+/utf
  1482. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1483. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1484. \= Expect no match
  1485. 11111111111111111111111111111111111111111111111111111111111111111111111
  1486. No match
  1487. /[\P{Nd}]+/utf
  1488. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1489. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1490. \= Expect no match
  1491. 11111111111111111111111111111111111111111111111111111111111111111111111
  1492. No match
  1493. /[\D\P{Nd}]+/utf
  1494. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1495. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  1496. \= Expect no match
  1497. 11111111111111111111111111111111111111111111111111111111111111111111111
  1498. No match
  1499. /\pL/utf
  1500. a
  1501. 0: a
  1502. A
  1503. 0: A
  1504. /\pL/i,utf
  1505. a
  1506. 0: a
  1507. A
  1508. 0: A
  1509. /\p{Lu}/utf
  1510. A
  1511. 0: A
  1512. aZ
  1513. 0: Z
  1514. \= Expect no match
  1515. abc
  1516. No match
  1517. /\p{Ll}/utf
  1518. a
  1519. 0: a
  1520. Az
  1521. 0: z
  1522. \= Expect no match
  1523. ABC
  1524. No match
  1525. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/utf
  1526. A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1527. 0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1528. \= Expect no match
  1529. a\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1530. No match
  1531. A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
  1532. No match
  1533. A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
  1534. No match
  1535. A\x{391}\x{10427}\x{ff5a}\x{1fb0}
  1536. No match
  1537. A\x{391}\x{10427}\x{ff3a}\x{1fb8}
  1538. No match
  1539. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/i,utf
  1540. A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1541. 0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1542. a\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1543. 0: a\x{391}\x{10427}\x{ff3a}\x{1fb0}
  1544. A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
  1545. 0: A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
  1546. A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
  1547. 0: A\x{391}\x{1044f}\x{ff3a}\x{1fb0}
  1548. A\x{391}\x{10427}\x{ff5a}\x{1fb0}
  1549. 0: A\x{391}\x{10427}\x{ff5a}\x{1fb0}
  1550. A\x{391}\x{10427}\x{ff3a}\x{1fb8}
  1551. 0: A\x{391}\x{10427}\x{ff3a}\x{1fb8}
  1552. /\x{391}+/i,utf
  1553. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
  1554. 0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
  1555. /\x{391}{3,5}(.)/i,utf
  1556. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
  1557. 0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
  1558. 1: X
  1559. /\x{391}{3,5}?(.)/i,utf
  1560. \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
  1561. 0: \x{391}\x{3b1}\x{3b1}\x{3b1}
  1562. 1: \x{3b1}
  1563. /[\x{391}\x{ff3a}]/i,utf
  1564. \x{391}
  1565. 0: \x{391}
  1566. \x{ff3a}
  1567. 0: \x{ff3a}
  1568. \x{3b1}
  1569. 0: \x{3b1}
  1570. \x{ff5a}
  1571. 0: \x{ff5a}
  1572. /^(\X*)C/utf
  1573. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1574. 0: A\x{300}\x{301}\x{302}BC
  1575. 1: A\x{300}\x{301}\x{302}B
  1576. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1577. 0: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1578. 1: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1579. /^(\X*?)C/utf
  1580. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1581. 0: A\x{300}\x{301}\x{302}BC
  1582. 1: A\x{300}\x{301}\x{302}B
  1583. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1584. 0: A\x{300}\x{301}\x{302}BC
  1585. 1: A\x{300}\x{301}\x{302}B
  1586. /^(\X*)(.)/utf
  1587. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1588. 0: A\x{300}\x{301}\x{302}BCA
  1589. 1: A\x{300}\x{301}\x{302}BC
  1590. 2: A
  1591. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1592. 0: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1593. 1: A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1594. 2: C
  1595. /^(\X*?)(.)/utf
  1596. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
  1597. 0: A
  1598. 1:
  1599. 2: A
  1600. A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
  1601. 0: A
  1602. 1:
  1603. 2: A
  1604. /^\X(.)/utf
  1605. \= Expect no match
  1606. A\x{300}\x{301}\x{302}
  1607. No match
  1608. /^\X{2,3}(.)/utf
  1609. A\x{300}\x{301}B\x{300}X
  1610. 0: A\x{300}\x{301}B\x{300}X
  1611. 1: X
  1612. A\x{300}\x{301}B\x{300}C\x{300}\x{301}
  1613. 0: A\x{300}\x{301}B\x{300}C
  1614. 1: C
  1615. A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
  1616. 0: A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
  1617. 1: X
  1618. A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
  1619. 0: A\x{300}\x{301}B\x{300}C\x{300}\x{301}D
  1620. 1: D
  1621. /^\X{2,3}?(.)/utf
  1622. A\x{300}\x{301}B\x{300}X
  1623. 0: A\x{300}\x{301}B\x{300}X
  1624. 1: X
  1625. A\x{300}\x{301}B\x{300}C\x{300}\x{301}
  1626. 0: A\x{300}\x{301}B\x{300}C
  1627. 1: C
  1628. A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
  1629. 0: A\x{300}\x{301}B\x{300}C
  1630. 1: C
  1631. A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
  1632. 0: A\x{300}\x{301}B\x{300}C
  1633. 1: C
  1634. /^\X/utf
  1635. A
  1636. 0: A
  1637. A\x{300}BC
  1638. 0: A\x{300}
  1639. A\x{300}\x{301}\x{302}BC
  1640. 0: A\x{300}\x{301}\x{302}
  1641. \x{300}
  1642. 0: \x{300}
  1643. /^\p{Han}+/utf
  1644. \x{2e81}\x{3007}\x{2f804}\x{31a0}
  1645. 0: \x{2e81}\x{3007}\x{2f804}
  1646. \= Expect no match
  1647. \x{2e7f}
  1648. No match
  1649. /^[\p{Arabic}]/utf
  1650. \x{06e9}
  1651. 0: \x{6e9}
  1652. \x{060b}
  1653. 0: \x{60b}
  1654. \= Expect no match
  1655. X\x{06e9}
  1656. No match
  1657. /^\P{Katakana}+/utf
  1658. \x{3105}
  1659. 0: \x{3105}
  1660. \= Expect no match
  1661. \x{30ff}
  1662. No match
  1663. /^[\P{Yi}]/utf
  1664. \x{2f800}
  1665. 0: \x{2f800}
  1666. \= Expect no match
  1667. \x{a014}
  1668. No match
  1669. \x{a4c6}
  1670. No match
  1671. /^\p{Any}X/utf
  1672. AXYZ
  1673. 0: AX
  1674. \x{1234}XYZ
  1675. 0: \x{1234}X
  1676. \= Expect no match
  1677. X
  1678. No match
  1679. /^\P{Any}X/utf
  1680. \= Expect no match
  1681. AX
  1682. No match
  1683. /^\p{Any}?X/utf
  1684. XYZ
  1685. 0: X
  1686. AXYZ
  1687. 0: AX
  1688. \x{1234}XYZ
  1689. 0: \x{1234}X
  1690. \= Expect no match
  1691. ABXYZ
  1692. No match
  1693. /^\P{Any}?X/utf
  1694. XYZ
  1695. 0: X
  1696. \= Expect no match
  1697. AXYZ
  1698. No match
  1699. \x{1234}XYZ
  1700. No match
  1701. ABXYZ
  1702. No match
  1703. /^\p{Any}+X/utf
  1704. AXYZ
  1705. 0: AX
  1706. \x{1234}XYZ
  1707. 0: \x{1234}X
  1708. A\x{1234}XYZ
  1709. 0: A\x{1234}X
  1710. \= Expect no match
  1711. XYZ
  1712. No match
  1713. /^\P{Any}+X/utf
  1714. \= Expect no match
  1715. AXYZ
  1716. No match
  1717. \x{1234}XYZ
  1718. No match
  1719. A\x{1234}XYZ
  1720. No match
  1721. XYZ
  1722. No match
  1723. /^\p{Any}*X/utf
  1724. XYZ
  1725. 0: X
  1726. AXYZ
  1727. 0: AX
  1728. \x{1234}XYZ
  1729. 0: \x{1234}X
  1730. A\x{1234}XYZ
  1731. 0: A\x{1234}X
  1732. /^\P{Any}*X/utf
  1733. XYZ
  1734. 0: X
  1735. \= Expect no match
  1736. AXYZ
  1737. No match
  1738. \x{1234}XYZ
  1739. No match
  1740. A\x{1234}XYZ
  1741. No match
  1742. /^[\p{Any}]X/utf
  1743. AXYZ
  1744. 0: AX
  1745. \x{1234}XYZ
  1746. 0: \x{1234}X
  1747. \= Expect no match
  1748. X
  1749. No match
  1750. /^[\P{Any}]X/utf
  1751. \= Expect no match
  1752. AX
  1753. No match
  1754. /^[\p{Any}]?X/utf
  1755. XYZ
  1756. 0: X
  1757. AXYZ
  1758. 0: AX
  1759. \x{1234}XYZ
  1760. 0: \x{1234}X
  1761. \= Expect no match
  1762. ABXYZ
  1763. No match
  1764. /^[\P{Any}]?X/utf
  1765. XYZ
  1766. 0: X
  1767. \= Expect no match
  1768. AXYZ
  1769. No match
  1770. \x{1234}XYZ
  1771. No match
  1772. ABXYZ
  1773. No match
  1774. /^[\p{Any}]+X/utf
  1775. AXYZ
  1776. 0: AX
  1777. \x{1234}XYZ
  1778. 0: \x{1234}X
  1779. A\x{1234}XYZ
  1780. 0: A\x{1234}X
  1781. \= Expect no match
  1782. XYZ
  1783. No match
  1784. /^[\P{Any}]+X/utf
  1785. \= Expect no match
  1786. AXYZ
  1787. No match
  1788. \x{1234}XYZ
  1789. No match
  1790. A\x{1234}XYZ
  1791. No match
  1792. XYZ
  1793. No match
  1794. /^[\p{Any}]*X/utf
  1795. XYZ
  1796. 0: X
  1797. AXYZ
  1798. 0: AX
  1799. \x{1234}XYZ
  1800. 0: \x{1234}X
  1801. A\x{1234}XYZ
  1802. 0: A\x{1234}X
  1803. /^[\P{Any}]*X/utf
  1804. XYZ
  1805. 0: X
  1806. \= Expect no match
  1807. AXYZ
  1808. No match
  1809. \x{1234}XYZ
  1810. No match
  1811. A\x{1234}XYZ
  1812. No match
  1813. /^\p{Any}{3,5}?/utf
  1814. abcdefgh
  1815. 0: abc
  1816. \x{1234}\n\r\x{3456}xyz
  1817. 0: \x{1234}\x{0a}\x{0d}
  1818. /^\p{Any}{3,5}/utf
  1819. abcdefgh
  1820. 0: abcde
  1821. \x{1234}\n\r\x{3456}xyz
  1822. 0: \x{1234}\x{0a}\x{0d}\x{3456}x
  1823. /^\P{Any}{3,5}?/utf
  1824. \= Expect no match
  1825. abcdefgh
  1826. No match
  1827. \x{1234}\n\r\x{3456}xyz
  1828. No match
  1829. /^\p{L&}X/utf
  1830. AXY
  1831. 0: AX
  1832. aXY
  1833. 0: aX
  1834. \x{1c5}XY
  1835. 0: \x{1c5}X
  1836. \= Expect no match
  1837. \x{1bb}XY
  1838. No match
  1839. \x{2b0}XY
  1840. No match
  1841. !XY
  1842. No match
  1843. /^[\p{L&}]X/utf
  1844. AXY
  1845. 0: AX
  1846. aXY
  1847. 0: aX
  1848. \x{1c5}XY
  1849. 0: \x{1c5}X
  1850. \= Expect no match
  1851. \x{1bb}XY
  1852. No match
  1853. \x{2b0}XY
  1854. No match
  1855. !XY
  1856. No match
  1857. /^\p{L&}+X/utf
  1858. AXY
  1859. 0: AX
  1860. aXY
  1861. 0: aX
  1862. AbcdeXyz
  1863. 0: AbcdeX
  1864. \x{1c5}AbXY
  1865. 0: \x{1c5}AbX
  1866. abcDEXypqreXlmn
  1867. 0: abcDEXypqreX
  1868. \= Expect no match
  1869. \x{1bb}XY
  1870. No match
  1871. \x{2b0}XY
  1872. No match
  1873. !XY
  1874. No match
  1875. /^[\p{L&}]+X/utf
  1876. AXY
  1877. 0: AX
  1878. aXY
  1879. 0: aX
  1880. AbcdeXyz
  1881. 0: AbcdeX
  1882. \x{1c5}AbXY
  1883. 0: \x{1c5}AbX
  1884. abcDEXypqreXlmn
  1885. 0: abcDEXypqreX
  1886. \= Expect no match
  1887. \x{1bb}XY
  1888. No match
  1889. \x{2b0}XY
  1890. No match
  1891. !XY
  1892. No match
  1893. /^\p{L&}+?X/utf
  1894. AXY
  1895. 0: AX
  1896. aXY
  1897. 0: aX
  1898. AbcdeXyz
  1899. 0: AbcdeX
  1900. \x{1c5}AbXY
  1901. 0: \x{1c5}AbX
  1902. abcDEXypqreXlmn
  1903. 0: abcDEX
  1904. \= Expect no match
  1905. \x{1bb}XY
  1906. No match
  1907. \x{2b0}XY
  1908. No match
  1909. !XY
  1910. No match
  1911. /^[\p{L&}]+?X/utf
  1912. AXY
  1913. 0: AX
  1914. aXY
  1915. 0: aX
  1916. AbcdeXyz
  1917. 0: AbcdeX
  1918. \x{1c5}AbXY
  1919. 0: \x{1c5}AbX
  1920. abcDEXypqreXlmn
  1921. 0: abcDEX
  1922. \= Expect no match
  1923. \x{1bb}XY
  1924. No match
  1925. \x{2b0}XY
  1926. No match
  1927. !XY
  1928. No match
  1929. /^\P{L&}X/utf
  1930. !XY
  1931. 0: !X
  1932. \x{1bb}XY
  1933. 0: \x{1bb}X
  1934. \x{2b0}XY
  1935. 0: \x{2b0}X
  1936. \= Expect no match
  1937. \x{1c5}XY
  1938. No match
  1939. AXY
  1940. No match
  1941. /^[\P{L&}]X/utf
  1942. !XY
  1943. 0: !X
  1944. \x{1bb}XY
  1945. 0: \x{1bb}X
  1946. \x{2b0}XY
  1947. 0: \x{2b0}X
  1948. \= Expect no match
  1949. \x{1c5}XY
  1950. No match
  1951. AXY
  1952. No match
  1953. /^(\p{Z}[^\p{C}\p{Z}]+)*$/
  1954. \xa0!
  1955. 0: \xa0!
  1956. 1: \xa0!
  1957. /^[\pL](abc)(?1)/
  1958. AabcabcYZ
  1959. 0: Aabcabc
  1960. 1: abc
  1961. /([\pL]=(abc))*X/
  1962. L=abcX
  1963. 0: L=abcX
  1964. 1: L=abc
  1965. 2: abc
  1966. /^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/utf
  1967. \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
  1968. 0: \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
  1969. # Check property support in non-UTF mode
  1970. /\p{L}{4}/
  1971. 123abcdefg
  1972. 0: abcd
  1973. 123abc\xc4\xc5zz
  1974. 0: abc\xc4
  1975. /\X{1,3}\d/
  1976. \= Expect no match
  1977. \x8aBCD
  1978. No match
  1979. /\X?\d/
  1980. \= Expect no match
  1981. \x8aBCD
  1982. No match
  1983. /\P{L}?\d/
  1984. \= Expect no match
  1985. \x8aBCD
  1986. No match
  1987. /[\PPP\x8a]{1,}\x80/
  1988. A\x80
  1989. 0: A\x80
  1990. /^[\p{Arabic}]/utf
  1991. \x{604}
  1992. 0: \x{604}
  1993. \x{60e}
  1994. 0: \x{60e}
  1995. \x{656}
  1996. 0: \x{656}
  1997. \x{657}
  1998. 0: \x{657}
  1999. \x{658}
  2000. 0: \x{658}
  2001. \x{659}
  2002. 0: \x{659}
  2003. \x{65a}
  2004. 0: \x{65a}
  2005. \x{65b}
  2006. 0: \x{65b}
  2007. \x{65c}
  2008. 0: \x{65c}
  2009. \x{65d}
  2010. 0: \x{65d}
  2011. \x{65e}
  2012. 0: \x{65e}
  2013. \x{65f}
  2014. 0: \x{65f}
  2015. \x{66a}
  2016. 0: \x{66a}
  2017. \x{6e9}
  2018. 0: \x{6e9}
  2019. \x{6ef}
  2020. 0: \x{6ef}
  2021. \x{6fa}
  2022. 0: \x{6fa}
  2023. /^\p{Cyrillic}/utf
  2024. \x{1d2b}
  2025. 0: \x{1d2b}
  2026. /^\p{Common}/utf
  2027. \x{2116}
  2028. 0: \x{2116}
  2029. \x{1D183}
  2030. 0: \x{1d183}
  2031. /^\p{Inherited}/utf
  2032. \x{200c}
  2033. 0: \x{200c}
  2034. \= Expect no match
  2035. \x{64a}
  2036. No match
  2037. \x{656}
  2038. No match
  2039. /^\p{Shavian}/utf
  2040. \x{10450}
  2041. 0: \x{10450}
  2042. \x{1047f}
  2043. 0: \x{1047f}
  2044. /^\p{Deseret}/utf
  2045. \x{10400}
  2046. 0: \x{10400}
  2047. \x{1044f}
  2048. 0: \x{1044f}
  2049. /^\p{Osmanya}/utf
  2050. \x{10480}
  2051. 0: \x{10480}
  2052. \x{1049d}
  2053. 0: \x{1049d}
  2054. \x{104a0}
  2055. 0: \x{104a0}
  2056. \x{104a9}
  2057. 0: \x{104a9}
  2058. \= Expect no match
  2059. \x{1049e}
  2060. No match
  2061. \x{1049f}
  2062. No match
  2063. \x{104aa}
  2064. No match
  2065. /\p{katakana}/utf
  2066. \x{30a1}
  2067. 0: \x{30a1}
  2068. \x{3001}
  2069. 0: \x{3001}
  2070. /\p{scx:katakana}/utf
  2071. \x{30a1}
  2072. 0: \x{30a1}
  2073. \x{3001}
  2074. 0: \x{3001}
  2075. /\p{script extensions:katakana}/utf
  2076. \x{30a1}
  2077. 0: \x{30a1}
  2078. \x{3001}
  2079. 0: \x{3001}
  2080. /\p{sc:katakana}/utf
  2081. \x{30a1}
  2082. 0: \x{30a1}
  2083. \= Expect no match
  2084. \x{3001}
  2085. No match
  2086. /\p{script:katakana}/utf
  2087. \x{30a1}
  2088. 0: \x{30a1}
  2089. \= Expect no match
  2090. \x{3001}
  2091. No match
  2092. /\p{sc:katakana}{3,}/utf
  2093. \x{30a1}\x{30fa}\x{32d0}\x{1b122}\x{ff66}\x{3001}ABC
  2094. 0: \x{30a1}\x{30fa}\x{32d0}\x{1b122}\x{ff66}
  2095. /\p{sc:katakana}{3,}?/utf
  2096. \x{30a1}\x{30fa}\x{32d0}\x{1b122}\x{ff66}\x{3001}ABC
  2097. 0: \x{30a1}\x{30fa}\x{32d0}
  2098. /\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
  2099. \x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}====
  2100. 0: \x{102a4}\x{aa52}\x{a91d}\x{1c46}\x{10283}\x{1092e}\x{1c6b}\x{a93b}\x{a8bf}\x{1ba0}\x{a50a}
  2101. /\x{a77d}\x{1d79}/i,utf
  2102. \x{a77d}\x{1d79}
  2103. 0: \x{a77d}\x{1d79}
  2104. \x{1d79}\x{a77d}
  2105. 0: \x{1d79}\x{a77d}
  2106. /\x{a77d}\x{1d79}/utf
  2107. \x{a77d}\x{1d79}
  2108. 0: \x{a77d}\x{1d79}
  2109. \= Expect no match
  2110. \x{1d79}\x{a77d}
  2111. No match
  2112. /(A)\1/i,utf
  2113. AA
  2114. 0: AA
  2115. 1: A
  2116. Aa
  2117. 0: Aa
  2118. 1: A
  2119. aa
  2120. 0: aa
  2121. 1: a
  2122. aA
  2123. 0: aA
  2124. 1: a
  2125. /(\x{10a})\1/i,utf
  2126. \x{10a}\x{10a}
  2127. 0: \x{10a}\x{10a}
  2128. 1: \x{10a}
  2129. \x{10a}\x{10b}
  2130. 0: \x{10a}\x{10b}
  2131. 1: \x{10a}
  2132. \x{10b}\x{10b}
  2133. 0: \x{10b}\x{10b}
  2134. 1: \x{10b}
  2135. \x{10b}\x{10a}
  2136. 0: \x{10b}\x{10a}
  2137. 1: \x{10b}
  2138. # The next two tests are for property support in non-UTF mode
  2139. /(?:\p{Lu}|\x20)+/
  2140. \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
  2141. 0: A P\xc2T\xc9 TODAY
  2142. /[\p{Lu}\x20]+/
  2143. \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
  2144. 0: A P\xc2T\xc9 TODAY
  2145. /\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
  2146. \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}
  2147. 0: \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{800}\x{1aad}\x{aac0}
  2148. /^\w+/utf,ucp
  2149. Az_\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  2150. 0: Az_\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  2151. /^[[:xdigit:]]*/utf,ucp
  2152. 1a\x{660}\x{bef}\x{16ee}
  2153. 0: 1a
  2154. /^\d+/utf,ucp
  2155. 1\x{660}\x{bef}\x{16ee}
  2156. 0: 1\x{660}\x{bef}
  2157. /^[[:digit:]]+/utf,ucp
  2158. 1\x{660}\x{bef}\x{16ee}
  2159. 0: 1\x{660}\x{bef}
  2160. /^>\s+/utf,ucp
  2161. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  2162. 0: > \x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{09}\x{0b}
  2163. /^>\pZ+/utf,ucp
  2164. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  2165. 0: > \x{a0}\x{1680}\x{2028}\x{2029}\x{202f}
  2166. /^>[[:space:]]*/utf,ucp
  2167. >\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
  2168. 0: > \x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{09}\x{0b}
  2169. /^>[[:blank:]]*/utf,ucp
  2170. >\x{20}\x{a0}\x{1680}\x{2000}\x{202f}\x{9}\x{b}\x{2028}
  2171. 0: > \x{a0}\x{1680}\x{2000}\x{202f}\x{09}
  2172. /^[[:alpha:]]*/utf,ucp
  2173. Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}
  2174. 0: Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}
  2175. /^[[:alnum:]]*/utf,ucp
  2176. Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  2177. 0: Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
  2178. /^[[:cntrl:]]*/utf,ucp
  2179. \x{0}\x{09}\x{1f}\x{7f}\x{9f}
  2180. 0: \x{00}\x{09}\x{1f}\x{7f}\x{9f}
  2181. /^[[:graph:]]*/utf,ucp
  2182. A\x{a1}\x{a0}
  2183. 0: A\x{a1}
  2184. /^[[:print:]]*/utf,ucp
  2185. A z\x{a0}\x{a1}
  2186. 0: A z\x{a0}\x{a1}
  2187. /^[[:punct:]]*/utf,ucp
  2188. .+\x{a1}\x{a0}
  2189. 0: .+\x{a1}
  2190. /\p{Zs}*?\R/
  2191. \= Expect no match
  2192. a\xFCb
  2193. No match
  2194. /\p{Zs}*\R/
  2195. \= Expect no match
  2196. a\xFCb
  2197. No match
  2198. /ⱥ/i,utf
  2199. 0: \x{2c65}
  2200. Ⱥx
  2201. 0: \x{23a}
  2202. Ⱥ
  2203. 0: \x{23a}
  2204. /[ⱥ]/i,utf
  2205. 0: \x{2c65}
  2206. Ⱥx
  2207. 0: \x{23a}
  2208. Ⱥ
  2209. 0: \x{23a}
  2210. /Ⱥ/i,utf
  2211. Ⱥ
  2212. 0: \x{23a}
  2213. 0: \x{2c65}
  2214. # These are tests for extended grapheme clusters
  2215. /^\X/utf,aftertext
  2216. G\x{34e}\x{34e}X
  2217. 0: G\x{34e}\x{34e}
  2218. 0+ X
  2219. \x{34e}\x{34e}X
  2220. 0: \x{34e}\x{34e}
  2221. 0+ X
  2222. \x04X
  2223. 0: \x{04}
  2224. 0+ X
  2225. \x{1100}X
  2226. 0: \x{1100}
  2227. 0+ X
  2228. \x{1100}\x{34e}X
  2229. 0: \x{1100}\x{34e}
  2230. 0+ X
  2231. \x{1b04}\x{1b04}X
  2232. 0: \x{1b04}\x{1b04}
  2233. 0+ X
  2234. *These match up to the roman letters
  2235. 0: *
  2236. 0+ These match up to the roman letters
  2237. \x{1111}\x{1111}L,L
  2238. 0: \x{1111}\x{1111}
  2239. 0+ L,L
  2240. \x{1111}\x{1111}\x{1169}L,L,V
  2241. 0: \x{1111}\x{1111}\x{1169}
  2242. 0+ L,L,V
  2243. \x{1111}\x{ae4c}L, LV
  2244. 0: \x{1111}\x{ae4c}
  2245. 0+ L, LV
  2246. \x{1111}\x{ad89}L, LVT
  2247. 0: \x{1111}\x{ad89}
  2248. 0+ L, LVT
  2249. \x{1111}\x{ae4c}\x{1169}L, LV, V
  2250. 0: \x{1111}\x{ae4c}\x{1169}
  2251. 0+ L, LV, V
  2252. \x{1111}\x{ae4c}\x{1169}\x{1169}L, LV, V, V
  2253. 0: \x{1111}\x{ae4c}\x{1169}\x{1169}
  2254. 0+ L, LV, V, V
  2255. \x{1111}\x{ae4c}\x{1169}\x{11fe}L, LV, V, T
  2256. 0: \x{1111}\x{ae4c}\x{1169}\x{11fe}
  2257. 0+ L, LV, V, T
  2258. \x{1111}\x{ad89}\x{11fe}L, LVT, T
  2259. 0: \x{1111}\x{ad89}\x{11fe}
  2260. 0+ L, LVT, T
  2261. \x{1111}\x{ad89}\x{11fe}\x{11fe}L, LVT, T, T
  2262. 0: \x{1111}\x{ad89}\x{11fe}\x{11fe}
  2263. 0+ L, LVT, T, T
  2264. \x{ad89}\x{11fe}\x{11fe}LVT, T, T
  2265. 0: \x{ad89}\x{11fe}\x{11fe}
  2266. 0+ LVT, T, T
  2267. *These match just the first codepoint (invalid sequence)
  2268. 0: *
  2269. 0+ These match just the first codepoint (invalid sequence)
  2270. \x{1111}\x{11fe}L, T
  2271. 0: \x{1111}
  2272. 0+ \x{11fe}L, T
  2273. \x{ae4c}\x{1111}LV, L
  2274. 0: \x{ae4c}
  2275. 0+ \x{1111}LV, L
  2276. \x{ae4c}\x{ae4c}LV, LV
  2277. 0: \x{ae4c}
  2278. 0+ \x{ae4c}LV, LV
  2279. \x{ae4c}\x{ad89}LV, LVT
  2280. 0: \x{ae4c}
  2281. 0+ \x{ad89}LV, LVT
  2282. \x{1169}\x{1111}V, L
  2283. 0: \x{1169}
  2284. 0+ \x{1111}V, L
  2285. \x{1169}\x{ae4c}V, LV
  2286. 0: \x{1169}
  2287. 0+ \x{ae4c}V, LV
  2288. \x{1169}\x{ad89}V, LVT
  2289. 0: \x{1169}
  2290. 0+ \x{ad89}V, LVT
  2291. \x{ad89}\x{1111}LVT, L
  2292. 0: \x{ad89}
  2293. 0+ \x{1111}LVT, L
  2294. \x{ad89}\x{1169}LVT, V
  2295. 0: \x{ad89}
  2296. 0+ \x{1169}LVT, V
  2297. \x{ad89}\x{ae4c}LVT, LV
  2298. 0: \x{ad89}
  2299. 0+ \x{ae4c}LVT, LV
  2300. \x{ad89}\x{ad89}LVT, LVT
  2301. 0: \x{ad89}
  2302. 0+ \x{ad89}LVT, LVT
  2303. \x{11fe}\x{1111}T, L
  2304. 0: \x{11fe}
  2305. 0+ \x{1111}T, L
  2306. \x{11fe}\x{1169}T, V
  2307. 0: \x{11fe}
  2308. 0+ \x{1169}T, V
  2309. \x{11fe}\x{ae4c}T, LV
  2310. 0: \x{11fe}
  2311. 0+ \x{ae4c}T, LV
  2312. \x{11fe}\x{ad89}T, LVT
  2313. 0: \x{11fe}
  2314. 0+ \x{ad89}T, LVT
  2315. *Test extend and spacing mark
  2316. 0: *
  2317. 0+ Test extend and spacing mark
  2318. \x{1111}\x{ae4c}\x{0711}L, LV, extend
  2319. 0: \x{1111}\x{ae4c}\x{711}
  2320. 0+ L, LV, extend
  2321. \x{1111}\x{ae4c}\x{1b04}L, LV, spacing mark
  2322. 0: \x{1111}\x{ae4c}\x{1b04}
  2323. 0+ L, LV, spacing mark
  2324. \x{1111}\x{ae4c}\x{1b04}\x{0711}\x{1b04}L, LV, spacing mark, extend, spacing mark
  2325. 0: \x{1111}\x{ae4c}\x{1b04}\x{711}\x{1b04}
  2326. 0+ L, LV, spacing mark, extend, spacing mark
  2327. *Test CR, LF, and control
  2328. 0: *
  2329. 0+ Test CR, LF, and control
  2330. \x0d\x{0711}CR, extend
  2331. 0: \x{0d}
  2332. 0+ \x{711}CR, extend
  2333. \x0d\x{1b04}CR, spacingmark
  2334. 0: \x{0d}
  2335. 0+ \x{1b04}CR, spacingmark
  2336. \x0a\x{0711}LF, extend
  2337. 0: \x{0a}
  2338. 0+ \x{711}LF, extend
  2339. \x0a\x{1b04}LF, spacingmark
  2340. 0: \x{0a}
  2341. 0+ \x{1b04}LF, spacingmark
  2342. \x0b\x{0711}Control, extend
  2343. 0: \x{0b}
  2344. 0+ \x{711}Control, extend
  2345. \x09\x{1b04}Control, spacingmark
  2346. 0: \x{09}
  2347. 0+ \x{1b04}Control, spacingmark
  2348. *There are no Prepend characters, so we can't test Prepend, CR
  2349. 0: *
  2350. 0+ There are no Prepend characters, so we can't test Prepend, CR
  2351. /^(?>\X{2})X/utf,aftertext
  2352. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2353. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2354. 0+
  2355. /^\X{2,4}X/utf,aftertext
  2356. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2357. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2358. 0+
  2359. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2360. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2361. 0+
  2362. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2363. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2364. 0+
  2365. /^\X{2,4}?X/utf,aftertext
  2366. \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2367. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2368. 0+
  2369. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2370. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2371. 0+
  2372. \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2373. 0: \x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
  2374. 0+
  2375. /\X*Z/utf,no_start_optimize
  2376. \= Expect no match
  2377. A\x{300}
  2378. No match
  2379. /\X*(.)/utf,no_start_optimize
  2380. A\x{1111}\x{ae4c}\x{1169}
  2381. 0: A\x{1111}
  2382. 1: \x{1111}
  2383. # --------------------------------------------
  2384. /\x{1e9e}+/i,utf
  2385. \x{1e9e}\x{00df}
  2386. 0: \x{1e9e}\x{df}
  2387. /[z\x{1e9e}]+/i,utf
  2388. \x{1e9e}\x{00df}
  2389. 0: \x{1e9e}\x{df}
  2390. /\x{00df}+/i,utf
  2391. \x{1e9e}\x{00df}
  2392. 0: \x{1e9e}\x{df}
  2393. /[z\x{00df}]+/i,utf
  2394. \x{1e9e}\x{00df}
  2395. 0: \x{1e9e}\x{df}
  2396. /\x{1f88}+/i,utf
  2397. \x{1f88}\x{1f80}
  2398. 0: \x{1f88}\x{1f80}
  2399. /[z\x{1f88}]+/i,utf
  2400. \x{1f88}\x{1f80}
  2401. 0: \x{1f88}\x{1f80}
  2402. # Check a reference with more than one other case
  2403. /^(\x{00b5})\1{2}$/i,utf
  2404. \x{00b5}\x{039c}\x{03bc}
  2405. 0: \x{b5}\x{39c}\x{3bc}
  2406. 1: \x{b5}
  2407. # Characters with more than one other case; test in classes
  2408. /[z\x{00b5}]+/i,utf
  2409. \x{00b5}\x{039c}\x{03bc}
  2410. 0: \x{b5}\x{39c}\x{3bc}
  2411. /[z\x{039c}]+/i,utf
  2412. \x{00b5}\x{039c}\x{03bc}
  2413. 0: \x{b5}\x{39c}\x{3bc}
  2414. /[z\x{03bc}]+/i,utf
  2415. \x{00b5}\x{039c}\x{03bc}
  2416. 0: \x{b5}\x{39c}\x{3bc}
  2417. /[z\x{00c5}]+/i,utf
  2418. \x{00c5}\x{00e5}\x{212b}
  2419. 0: \x{c5}\x{e5}\x{212b}
  2420. /[z\x{00e5}]+/i,utf
  2421. \x{00c5}\x{00e5}\x{212b}
  2422. 0: \x{c5}\x{e5}\x{212b}
  2423. /[z\x{212b}]+/i,utf
  2424. \x{00c5}\x{00e5}\x{212b}
  2425. 0: \x{c5}\x{e5}\x{212b}
  2426. /[z\x{01c4}]+/i,utf
  2427. \x{01c4}\x{01c5}\x{01c6}
  2428. 0: \x{1c4}\x{1c5}\x{1c6}
  2429. /[z\x{01c5}]+/i,utf
  2430. \x{01c4}\x{01c5}\x{01c6}
  2431. 0: \x{1c4}\x{1c5}\x{1c6}
  2432. /[z\x{01c6}]+/i,utf
  2433. \x{01c4}\x{01c5}\x{01c6}
  2434. 0: \x{1c4}\x{1c5}\x{1c6}
  2435. /[z\x{01c7}]+/i,utf
  2436. \x{01c7}\x{01c8}\x{01c9}
  2437. 0: \x{1c7}\x{1c8}\x{1c9}
  2438. /[z\x{01c8}]+/i,utf
  2439. \x{01c7}\x{01c8}\x{01c9}
  2440. 0: \x{1c7}\x{1c8}\x{1c9}
  2441. /[z\x{01c9}]+/i,utf
  2442. \x{01c7}\x{01c8}\x{01c9}
  2443. 0: \x{1c7}\x{1c8}\x{1c9}
  2444. /[z\x{01ca}]+/i,utf
  2445. \x{01ca}\x{01cb}\x{01cc}
  2446. 0: \x{1ca}\x{1cb}\x{1cc}
  2447. /[z\x{01cb}]+/i,utf
  2448. \x{01ca}\x{01cb}\x{01cc}
  2449. 0: \x{1ca}\x{1cb}\x{1cc}
  2450. /[z\x{01cc}]+/i,utf
  2451. \x{01ca}\x{01cb}\x{01cc}
  2452. 0: \x{1ca}\x{1cb}\x{1cc}
  2453. /[z\x{01f1}]+/i,utf
  2454. \x{01f1}\x{01f2}\x{01f3}
  2455. 0: \x{1f1}\x{1f2}\x{1f3}
  2456. /[z\x{01f2}]+/i,utf
  2457. \x{01f1}\x{01f2}\x{01f3}
  2458. 0: \x{1f1}\x{1f2}\x{1f3}
  2459. /[z\x{01f3}]+/i,utf
  2460. \x{01f1}\x{01f2}\x{01f3}
  2461. 0: \x{1f1}\x{1f2}\x{1f3}
  2462. /[z\x{0345}]+/i,utf
  2463. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2464. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2465. /[z\x{0399}]+/i,utf
  2466. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2467. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2468. /[z\x{03b9}]+/i,utf
  2469. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2470. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2471. /[z\x{1fbe}]+/i,utf
  2472. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2473. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2474. /[z\x{0392}]+/i,utf
  2475. \x{0392}\x{03b2}\x{03d0}
  2476. 0: \x{392}\x{3b2}\x{3d0}
  2477. /[z\x{03b2}]+/i,utf
  2478. \x{0392}\x{03b2}\x{03d0}
  2479. 0: \x{392}\x{3b2}\x{3d0}
  2480. /[z\x{03d0}]+/i,utf
  2481. \x{0392}\x{03b2}\x{03d0}
  2482. 0: \x{392}\x{3b2}\x{3d0}
  2483. /[z\x{0395}]+/i,utf
  2484. \x{0395}\x{03b5}\x{03f5}
  2485. 0: \x{395}\x{3b5}\x{3f5}
  2486. /[z\x{03b5}]+/i,utf
  2487. \x{0395}\x{03b5}\x{03f5}
  2488. 0: \x{395}\x{3b5}\x{3f5}
  2489. /[z\x{03f5}]+/i,utf
  2490. \x{0395}\x{03b5}\x{03f5}
  2491. 0: \x{395}\x{3b5}\x{3f5}
  2492. /[z\x{0398}]+/i,utf
  2493. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2494. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2495. /[z\x{03b8}]+/i,utf
  2496. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2497. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2498. /[z\x{03d1}]+/i,utf
  2499. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2500. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2501. /[z\x{03f4}]+/i,utf
  2502. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2503. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2504. /[z\x{039a}]+/i,utf
  2505. \x{039a}\x{03ba}\x{03f0}
  2506. 0: \x{39a}\x{3ba}\x{3f0}
  2507. /[z\x{03ba}]+/i,utf
  2508. \x{039a}\x{03ba}\x{03f0}
  2509. 0: \x{39a}\x{3ba}\x{3f0}
  2510. /[z\x{03f0}]+/i,utf
  2511. \x{039a}\x{03ba}\x{03f0}
  2512. 0: \x{39a}\x{3ba}\x{3f0}
  2513. /[z\x{03a0}]+/i,utf
  2514. \x{03a0}\x{03c0}\x{03d6}
  2515. 0: \x{3a0}\x{3c0}\x{3d6}
  2516. /[z\x{03c0}]+/i,utf
  2517. \x{03a0}\x{03c0}\x{03d6}
  2518. 0: \x{3a0}\x{3c0}\x{3d6}
  2519. /[z\x{03d6}]+/i,utf
  2520. \x{03a0}\x{03c0}\x{03d6}
  2521. 0: \x{3a0}\x{3c0}\x{3d6}
  2522. /[z\x{03a1}]+/i,utf
  2523. \x{03a1}\x{03c1}\x{03f1}
  2524. 0: \x{3a1}\x{3c1}\x{3f1}
  2525. /[z\x{03c1}]+/i,utf
  2526. \x{03a1}\x{03c1}\x{03f1}
  2527. 0: \x{3a1}\x{3c1}\x{3f1}
  2528. /[z\x{03f1}]+/i,utf
  2529. \x{03a1}\x{03c1}\x{03f1}
  2530. 0: \x{3a1}\x{3c1}\x{3f1}
  2531. /[z\x{03a3}]+/i,utf
  2532. \x{03A3}\x{03C2}\x{03C3}
  2533. 0: \x{3a3}\x{3c2}\x{3c3}
  2534. /[z\x{03c2}]+/i,utf
  2535. \x{03A3}\x{03C2}\x{03C3}
  2536. 0: \x{3a3}\x{3c2}\x{3c3}
  2537. /[z\x{03c3}]+/i,utf
  2538. \x{03A3}\x{03C2}\x{03C3}
  2539. 0: \x{3a3}\x{3c2}\x{3c3}
  2540. /[z\x{03a6}]+/i,utf
  2541. \x{03a6}\x{03c6}\x{03d5}
  2542. 0: \x{3a6}\x{3c6}\x{3d5}
  2543. /[z\x{03c6}]+/i,utf
  2544. \x{03a6}\x{03c6}\x{03d5}
  2545. 0: \x{3a6}\x{3c6}\x{3d5}
  2546. /[z\x{03d5}]+/i,utf
  2547. \x{03a6}\x{03c6}\x{03d5}
  2548. 0: \x{3a6}\x{3c6}\x{3d5}
  2549. /[z\x{03c9}]+/i,utf
  2550. \x{03c9}\x{03a9}\x{2126}
  2551. 0: \x{3c9}\x{3a9}\x{2126}
  2552. /[z\x{03a9}]+/i,utf
  2553. \x{03c9}\x{03a9}\x{2126}
  2554. 0: \x{3c9}\x{3a9}\x{2126}
  2555. /[z\x{2126}]+/i,utf
  2556. \x{03c9}\x{03a9}\x{2126}
  2557. 0: \x{3c9}\x{3a9}\x{2126}
  2558. /[z\x{1e60}]+/i,utf
  2559. \x{1e60}\x{1e61}\x{1e9b}
  2560. 0: \x{1e60}\x{1e61}\x{1e9b}
  2561. /[z\x{1e61}]+/i,utf
  2562. \x{1e60}\x{1e61}\x{1e9b}
  2563. 0: \x{1e60}\x{1e61}\x{1e9b}
  2564. /[z\x{1e9b}]+/i,utf
  2565. \x{1e60}\x{1e61}\x{1e9b}
  2566. 0: \x{1e60}\x{1e61}\x{1e9b}
  2567. # Perl 5.12.4 gets these wrong, but 5.15.3 is OK
  2568. /[z\x{004b}]+/i,utf
  2569. \x{004b}\x{006b}\x{212a}
  2570. 0: Kk\x{212a}
  2571. /[z\x{006b}]+/i,utf
  2572. \x{004b}\x{006b}\x{212a}
  2573. 0: Kk\x{212a}
  2574. /[z\x{212a}]+/i,utf
  2575. \x{004b}\x{006b}\x{212a}
  2576. 0: Kk\x{212a}
  2577. /[z\x{0053}]+/i,utf
  2578. \x{0053}\x{0073}\x{017f}
  2579. 0: Ss\x{17f}
  2580. /[z\x{0073}]+/i,utf
  2581. \x{0053}\x{0073}\x{017f}
  2582. 0: Ss\x{17f}
  2583. /[z\x{017f}]+/i,utf
  2584. \x{0053}\x{0073}\x{017f}
  2585. 0: Ss\x{17f}
  2586. # --------------------------------------
  2587. /(ΣΆΜΟΣ) \1/i,utf
  2588. ΣΆΜΟΣ ΣΆΜΟΣ
  2589. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3} \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2590. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2591. ΣΆΜΟΣ σάμος
  2592. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2593. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2594. σάμος σάμος
  2595. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2596. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2597. σάμος σάμοσ
  2598. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c3}
  2599. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2600. σάμος ΣΆΜΟΣ
  2601. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2602. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2603. /(σάμος) \1/i,utf
  2604. ΣΆΜΟΣ ΣΆΜΟΣ
  2605. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3} \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2606. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2607. ΣΆΜΟΣ σάμος
  2608. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2609. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2610. σάμος σάμος
  2611. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2612. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2613. σάμος σάμοσ
  2614. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c3}
  2615. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2616. σάμος ΣΆΜΟΣ
  2617. 0: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2} \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2618. 1: \x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2619. /(ΣΆΜΟΣ) \1*/i,utf
  2620. ΣΆΜΟΣ\x20
  2621. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2622. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2623. ΣΆΜΟΣ ΣΆΜΟΣσάμοςσάμος
  2624. 0: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3} \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}\x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}\x{3c3}\x{3ac}\x{3bc}\x{3bf}\x{3c2}
  2625. 1: \x{3a3}\x{386}\x{39c}\x{39f}\x{3a3}
  2626. # Perl matches these
  2627. /\x{00b5}+/i,utf
  2628. \x{00b5}\x{039c}\x{03bc}
  2629. 0: \x{b5}\x{39c}\x{3bc}
  2630. /\x{039c}+/i,utf
  2631. \x{00b5}\x{039c}\x{03bc}
  2632. 0: \x{b5}\x{39c}\x{3bc}
  2633. /\x{03bc}+/i,utf
  2634. \x{00b5}\x{039c}\x{03bc}
  2635. 0: \x{b5}\x{39c}\x{3bc}
  2636. /\x{00c5}+/i,utf
  2637. \x{00c5}\x{00e5}\x{212b}
  2638. 0: \x{c5}\x{e5}\x{212b}
  2639. /\x{00e5}+/i,utf
  2640. \x{00c5}\x{00e5}\x{212b}
  2641. 0: \x{c5}\x{e5}\x{212b}
  2642. /\x{212b}+/i,utf
  2643. \x{00c5}\x{00e5}\x{212b}
  2644. 0: \x{c5}\x{e5}\x{212b}
  2645. /\x{01c4}+/i,utf
  2646. \x{01c4}\x{01c5}\x{01c6}
  2647. 0: \x{1c4}\x{1c5}\x{1c6}
  2648. /\x{01c5}+/i,utf
  2649. \x{01c4}\x{01c5}\x{01c6}
  2650. 0: \x{1c4}\x{1c5}\x{1c6}
  2651. /\x{01c6}+/i,utf
  2652. \x{01c4}\x{01c5}\x{01c6}
  2653. 0: \x{1c4}\x{1c5}\x{1c6}
  2654. /\x{01c7}+/i,utf
  2655. \x{01c7}\x{01c8}\x{01c9}
  2656. 0: \x{1c7}\x{1c8}\x{1c9}
  2657. /\x{01c8}+/i,utf
  2658. \x{01c7}\x{01c8}\x{01c9}
  2659. 0: \x{1c7}\x{1c8}\x{1c9}
  2660. /\x{01c9}+/i,utf
  2661. \x{01c7}\x{01c8}\x{01c9}
  2662. 0: \x{1c7}\x{1c8}\x{1c9}
  2663. /\x{01ca}+/i,utf
  2664. \x{01ca}\x{01cb}\x{01cc}
  2665. 0: \x{1ca}\x{1cb}\x{1cc}
  2666. /\x{01cb}+/i,utf
  2667. \x{01ca}\x{01cb}\x{01cc}
  2668. 0: \x{1ca}\x{1cb}\x{1cc}
  2669. /\x{01cc}+/i,utf
  2670. \x{01ca}\x{01cb}\x{01cc}
  2671. 0: \x{1ca}\x{1cb}\x{1cc}
  2672. /\x{01f1}+/i,utf
  2673. \x{01f1}\x{01f2}\x{01f3}
  2674. 0: \x{1f1}\x{1f2}\x{1f3}
  2675. /\x{01f2}+/i,utf
  2676. \x{01f1}\x{01f2}\x{01f3}
  2677. 0: \x{1f1}\x{1f2}\x{1f3}
  2678. /\x{01f3}+/i,utf
  2679. \x{01f1}\x{01f2}\x{01f3}
  2680. 0: \x{1f1}\x{1f2}\x{1f3}
  2681. /\x{0345}+/i,utf
  2682. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2683. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2684. /\x{0399}+/i,utf
  2685. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2686. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2687. /\x{03b9}+/i,utf
  2688. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2689. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2690. /\x{1fbe}+/i,utf
  2691. \x{0345}\x{0399}\x{03b9}\x{1fbe}
  2692. 0: \x{345}\x{399}\x{3b9}\x{1fbe}
  2693. /\x{0392}+/i,utf
  2694. \x{0392}\x{03b2}\x{03d0}
  2695. 0: \x{392}\x{3b2}\x{3d0}
  2696. /\x{03b2}+/i,utf
  2697. \x{0392}\x{03b2}\x{03d0}
  2698. 0: \x{392}\x{3b2}\x{3d0}
  2699. /\x{03d0}+/i,utf
  2700. \x{0392}\x{03b2}\x{03d0}
  2701. 0: \x{392}\x{3b2}\x{3d0}
  2702. /\x{0395}+/i,utf
  2703. \x{0395}\x{03b5}\x{03f5}
  2704. 0: \x{395}\x{3b5}\x{3f5}
  2705. /\x{03b5}+/i,utf
  2706. \x{0395}\x{03b5}\x{03f5}
  2707. 0: \x{395}\x{3b5}\x{3f5}
  2708. /\x{03f5}+/i,utf
  2709. \x{0395}\x{03b5}\x{03f5}
  2710. 0: \x{395}\x{3b5}\x{3f5}
  2711. /\x{0398}+/i,utf
  2712. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2713. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2714. /\x{03b8}+/i,utf
  2715. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2716. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2717. /\x{03d1}+/i,utf
  2718. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2719. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2720. /\x{03f4}+/i,utf
  2721. \x{0398}\x{03b8}\x{03d1}\x{03f4}
  2722. 0: \x{398}\x{3b8}\x{3d1}\x{3f4}
  2723. /\x{039a}+/i,utf
  2724. \x{039a}\x{03ba}\x{03f0}
  2725. 0: \x{39a}\x{3ba}\x{3f0}
  2726. /\x{03ba}+/i,utf
  2727. \x{039a}\x{03ba}\x{03f0}
  2728. 0: \x{39a}\x{3ba}\x{3f0}
  2729. /\x{03f0}+/i,utf
  2730. \x{039a}\x{03ba}\x{03f0}
  2731. 0: \x{39a}\x{3ba}\x{3f0}
  2732. /\x{03a0}+/i,utf
  2733. \x{03a0}\x{03c0}\x{03d6}
  2734. 0: \x{3a0}\x{3c0}\x{3d6}
  2735. /\x{03c0}+/i,utf
  2736. \x{03a0}\x{03c0}\x{03d6}
  2737. 0: \x{3a0}\x{3c0}\x{3d6}
  2738. /\x{03d6}+/i,utf
  2739. \x{03a0}\x{03c0}\x{03d6}
  2740. 0: \x{3a0}\x{3c0}\x{3d6}
  2741. /\x{03a1}+/i,utf
  2742. \x{03a1}\x{03c1}\x{03f1}
  2743. 0: \x{3a1}\x{3c1}\x{3f1}
  2744. /\x{03c1}+/i,utf
  2745. \x{03a1}\x{03c1}\x{03f1}
  2746. 0: \x{3a1}\x{3c1}\x{3f1}
  2747. /\x{03f1}+/i,utf
  2748. \x{03a1}\x{03c1}\x{03f1}
  2749. 0: \x{3a1}\x{3c1}\x{3f1}
  2750. /\x{03a3}+/i,utf
  2751. \x{03A3}\x{03C2}\x{03C3}
  2752. 0: \x{3a3}\x{3c2}\x{3c3}
  2753. /\x{03c2}+/i,utf
  2754. \x{03A3}\x{03C2}\x{03C3}
  2755. 0: \x{3a3}\x{3c2}\x{3c3}
  2756. /\x{03c3}+/i,utf
  2757. \x{03A3}\x{03C2}\x{03C3}
  2758. 0: \x{3a3}\x{3c2}\x{3c3}
  2759. /\x{03a6}+/i,utf
  2760. \x{03a6}\x{03c6}\x{03d5}
  2761. 0: \x{3a6}\x{3c6}\x{3d5}
  2762. /\x{03c6}+/i,utf
  2763. \x{03a6}\x{03c6}\x{03d5}
  2764. 0: \x{3a6}\x{3c6}\x{3d5}
  2765. /\x{03d5}+/i,utf
  2766. \x{03a6}\x{03c6}\x{03d5}
  2767. 0: \x{3a6}\x{3c6}\x{3d5}
  2768. /\x{03c9}+/i,utf
  2769. \x{03c9}\x{03a9}\x{2126}
  2770. 0: \x{3c9}\x{3a9}\x{2126}
  2771. /\x{03a9}+/i,utf
  2772. \x{03c9}\x{03a9}\x{2126}
  2773. 0: \x{3c9}\x{3a9}\x{2126}
  2774. /\x{2126}+/i,utf
  2775. \x{03c9}\x{03a9}\x{2126}
  2776. 0: \x{3c9}\x{3a9}\x{2126}
  2777. /\x{1e60}+/i,utf
  2778. \x{1e60}\x{1e61}\x{1e9b}
  2779. 0: \x{1e60}\x{1e61}\x{1e9b}
  2780. /\x{1e61}+/i,utf
  2781. \x{1e60}\x{1e61}\x{1e9b}
  2782. 0: \x{1e60}\x{1e61}\x{1e9b}
  2783. /\x{1e9b}+/i,utf
  2784. \x{1e60}\x{1e61}\x{1e9b}
  2785. 0: \x{1e60}\x{1e61}\x{1e9b}
  2786. /\x{1e9e}+/i,utf
  2787. \x{1e9e}\x{00df}
  2788. 0: \x{1e9e}\x{df}
  2789. /\x{00df}+/i,utf
  2790. \x{1e9e}\x{00df}
  2791. 0: \x{1e9e}\x{df}
  2792. /\x{1f88}+/i,utf
  2793. \x{1f88}\x{1f80}
  2794. 0: \x{1f88}\x{1f80}
  2795. /\x{1f80}+/i,utf
  2796. \x{1f88}\x{1f80}
  2797. 0: \x{1f88}\x{1f80}
  2798. # Perl 5.12.4 gets these wrong, but 5.15.3 is OK
  2799. /\x{004b}+/i,utf
  2800. \x{004b}\x{006b}\x{212a}
  2801. 0: Kk\x{212a}
  2802. /\x{006b}+/i,utf
  2803. \x{004b}\x{006b}\x{212a}
  2804. 0: Kk\x{212a}
  2805. /\x{212a}+/i,utf
  2806. \x{004b}\x{006b}\x{212a}
  2807. 0: Kk\x{212a}
  2808. /\x{0053}+/i,utf
  2809. \x{0053}\x{0073}\x{017f}
  2810. 0: Ss\x{17f}
  2811. /\x{0073}+/i,utf
  2812. \x{0053}\x{0073}\x{017f}
  2813. 0: Ss\x{17f}
  2814. /\x{017f}+/i,utf
  2815. \x{0053}\x{0073}\x{017f}
  2816. 0: Ss\x{17f}
  2817. /^\p{Any}*\d{4}/utf
  2818. 1234
  2819. 0: 1234
  2820. \= Expect no match
  2821. 123
  2822. No match
  2823. /^\X*\w{4}/utf
  2824. 1234
  2825. 0: 1234
  2826. \= Expect no match
  2827. 123
  2828. No match
  2829. /^A\s+Z/utf,ucp
  2830. A\x{2005}Z
  2831. 0: A\x{2005}Z
  2832. A\x{85}\x{2005}Z
  2833. 0: A\x{85}\x{2005}Z
  2834. /^A[\s]+Z/utf,ucp
  2835. A\x{2005}Z
  2836. 0: A\x{2005}Z
  2837. A\x{85}\x{2005}Z
  2838. 0: A\x{85}\x{2005}Z
  2839. /^[[:graph:]]+$/utf,ucp
  2840. Letter:ABC
  2841. 0: Letter:ABC
  2842. Mark:\x{300}\x{1d172}\x{1d17b}
  2843. 0: Mark:\x{300}\x{1d172}\x{1d17b}
  2844. Number:9\x{660}
  2845. 0: Number:9\x{660}
  2846. Punctuation:\x{66a},;
  2847. 0: Punctuation:\x{66a},;
  2848. Symbol:\x{6de}<>\x{fffc}
  2849. 0: Symbol:\x{6de}<>\x{fffc}
  2850. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  2851. 0: Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  2852. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  2853. 0: \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  2854. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  2855. 0: \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  2856. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  2857. 0: \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  2858. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  2859. 0: \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  2860. \x{feff}
  2861. 0: \x{feff}
  2862. \x{fff9}\x{fffa}\x{fffb}
  2863. 0: \x{fff9}\x{fffa}\x{fffb}
  2864. \x{110bd}
  2865. 0: \x{110bd}
  2866. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  2867. 0: \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  2868. \x{e0001}
  2869. 0: \x{e0001}
  2870. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  2871. 0: \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  2872. \= Expect no match
  2873. \x{09}
  2874. No match
  2875. \x{0a}
  2876. No match
  2877. \x{1D}
  2878. No match
  2879. \x{20}
  2880. No match
  2881. \x{85}
  2882. No match
  2883. \x{a0}
  2884. No match
  2885. \x{1680}
  2886. No match
  2887. \x{2028}
  2888. No match
  2889. \x{2029}
  2890. No match
  2891. \x{202f}
  2892. No match
  2893. \x{2065}
  2894. No match
  2895. \x{3000}
  2896. No match
  2897. \x{e0002}
  2898. No match
  2899. \x{e001f}
  2900. No match
  2901. \x{e0080}
  2902. No match
  2903. /^[[:print:]]+$/utf,ucp
  2904. Space: \x{a0}
  2905. 0: Space: \x{a0}
  2906. \x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
  2907. 0: \x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
  2908. \x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
  2909. 0: \x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
  2910. \x{202f}\x{205f}
  2911. 0: \x{202f}\x{205f}
  2912. \x{3000}
  2913. 0: \x{3000}
  2914. Letter:ABC
  2915. 0: Letter:ABC
  2916. Mark:\x{300}\x{1d172}\x{1d17b}
  2917. 0: Mark:\x{300}\x{1d172}\x{1d17b}
  2918. Number:9\x{660}
  2919. 0: Number:9\x{660}
  2920. Punctuation:\x{66a},;
  2921. 0: Punctuation:\x{66a},;
  2922. Symbol:\x{6de}<>\x{fffc}
  2923. 0: Symbol:\x{6de}<>\x{fffc}
  2924. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  2925. 0: Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  2926. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  2927. 0: \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  2928. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  2929. 0: \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  2930. \x{202f}
  2931. 0: \x{202f}
  2932. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  2933. 0: \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  2934. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  2935. 0: \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  2936. \x{feff}
  2937. 0: \x{feff}
  2938. \x{fff9}\x{fffa}\x{fffb}
  2939. 0: \x{fff9}\x{fffa}\x{fffb}
  2940. \x{110bd}
  2941. 0: \x{110bd}
  2942. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  2943. 0: \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  2944. \x{e0001}
  2945. 0: \x{e0001}
  2946. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  2947. 0: \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  2948. \= Expect no match
  2949. \x{09}
  2950. No match
  2951. \x{1D}
  2952. No match
  2953. \x{85}
  2954. No match
  2955. \x{2028}
  2956. No match
  2957. \x{2029}
  2958. No match
  2959. \x{2065}
  2960. No match
  2961. \x{e0002}
  2962. No match
  2963. \x{e001f}
  2964. No match
  2965. \x{e0080}
  2966. No match
  2967. /^[[:punct:]]+$/utf,ucp
  2968. \$+<=>^`|~
  2969. 0: $+<=>^`|~
  2970. !\"#%&'()*,-./:;?@[\\]_{}
  2971. 0: !"#%&'()*,-./:;?@[\]_{}
  2972. \x{a1}\x{a7}
  2973. 0: \x{a1}\x{a7}
  2974. \x{37e}
  2975. 0: \x{37e}
  2976. \= Expect no match
  2977. abcde
  2978. No match
  2979. /^[[:^graph:]]+$/utf,ucp
  2980. \x{09}\x{0a}\x{1D}\x{20}\x{85}\x{a0}\x{1680}
  2981. 0: \x{09}\x{0a}\x{1d} \x{85}\x{a0}\x{1680}
  2982. \x{2028}\x{2029}\x{202f}\x{2065}
  2983. 0: \x{2028}\x{2029}\x{202f}\x{2065}
  2984. \x{3000}\x{e0002}\x{e001f}\x{e0080}
  2985. 0: \x{3000}\x{e0002}\x{e001f}\x{e0080}
  2986. \= Expect no match
  2987. Letter:ABC
  2988. No match
  2989. Mark:\x{300}\x{1d172}\x{1d17b}
  2990. No match
  2991. Number:9\x{660}
  2992. No match
  2993. Punctuation:\x{66a},;
  2994. No match
  2995. Symbol:\x{6de}<>\x{fffc}
  2996. No match
  2997. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  2998. No match
  2999. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  3000. No match
  3001. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  3002. No match
  3003. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  3004. No match
  3005. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  3006. No match
  3007. \x{feff}
  3008. No match
  3009. \x{fff9}\x{fffa}\x{fffb}
  3010. No match
  3011. \x{110bd}
  3012. No match
  3013. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  3014. No match
  3015. \x{e0001}
  3016. No match
  3017. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  3018. No match
  3019. /^[[:^print:]]+$/utf,ucp
  3020. \x{09}\x{1D}\x{85}\x{2028}\x{2029}\x{2065}
  3021. 0: \x{09}\x{1d}\x{85}\x{2028}\x{2029}\x{2065}
  3022. \x{e0002}\x{e001f}\x{e0080}
  3023. 0: \x{e0002}\x{e001f}\x{e0080}
  3024. \= Expect no match
  3025. Space: \x{a0}
  3026. No match
  3027. \x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
  3028. No match
  3029. \x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
  3030. No match
  3031. \x{202f}\x{205f}
  3032. No match
  3033. \x{3000}
  3034. No match
  3035. Letter:ABC
  3036. No match
  3037. Mark:\x{300}\x{1d172}\x{1d17b}
  3038. No match
  3039. Number:9\x{660}
  3040. No match
  3041. Punctuation:\x{66a},;
  3042. No match
  3043. Symbol:\x{6de}<>\x{fffc}
  3044. No match
  3045. Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
  3046. No match
  3047. \x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
  3048. No match
  3049. \x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
  3050. No match
  3051. \x{202f}
  3052. No match
  3053. \x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
  3054. No match
  3055. \x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
  3056. No match
  3057. \x{feff}
  3058. No match
  3059. \x{fff9}\x{fffa}\x{fffb}
  3060. No match
  3061. \x{110bd}
  3062. No match
  3063. \x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
  3064. No match
  3065. \x{e0001}
  3066. No match
  3067. \x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
  3068. No match
  3069. /^[[:^punct:]]+$/utf,ucp
  3070. abcde
  3071. 0: abcde
  3072. \= Expect no match
  3073. \$+<=>^`|~
  3074. No match
  3075. !\"#%&'()*,-./:;?@[\\]_{}
  3076. No match
  3077. \x{a1}\x{a7}
  3078. No match
  3079. \x{37e}
  3080. No match
  3081. /[RST]+/i,utf,ucp
  3082. Ss\x{17f}
  3083. 0: Ss\x{17f}
  3084. /[R-T]+/i,utf,ucp
  3085. Ss\x{17f}
  3086. 0: Ss\x{17f}
  3087. /[q-u]+/i,utf,ucp
  3088. Ss\x{17f}
  3089. 0: Ss\x{17f}
  3090. /^s?c/im,utf
  3091. scat
  3092. 0: sc
  3093. # The next four tests are for repeated caseless back references when the
  3094. # code unit length of the matched text is different to that of the original
  3095. # group in the UTF-8 case.
  3096. /^(\x{23a})\1*(.)/i,utf
  3097. \x{23a}\x{23a}\x{23a}\x{23a}
  3098. 0: \x{23a}\x{23a}\x{23a}\x{23a}
  3099. 1: \x{23a}
  3100. 2: \x{23a}
  3101. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3102. 0: \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3103. 1: \x{23a}
  3104. 2: \x{2c65}
  3105. \x{23a}\x{23a}\x{2c65}\x{23a}
  3106. 0: \x{23a}\x{23a}\x{2c65}\x{23a}
  3107. 1: \x{23a}
  3108. 2: \x{23a}
  3109. /^(\x{23a})\1*(..)/i,utf
  3110. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3111. 0: \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3112. 1: \x{23a}
  3113. 2: \x{2c65}\x{2c65}
  3114. \x{23a}\x{23a}\x{2c65}\x{23a}
  3115. 0: \x{23a}\x{23a}\x{2c65}\x{23a}
  3116. 1: \x{23a}
  3117. 2: \x{2c65}\x{23a}
  3118. /^(\x{23a})\1*(...)/i,utf
  3119. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3120. 0: \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3121. 1: \x{23a}
  3122. 2: \x{2c65}\x{2c65}\x{2c65}
  3123. \x{23a}\x{23a}\x{2c65}\x{23a}
  3124. 0: \x{23a}\x{23a}\x{2c65}\x{23a}
  3125. 1: \x{23a}
  3126. 2: \x{23a}\x{2c65}\x{23a}
  3127. /^(\x{23a})\1*(....)/i,utf
  3128. \= Expect no match
  3129. \x{23a}\x{2c65}\x{2c65}\x{2c65}
  3130. No match
  3131. \x{23a}\x{23a}\x{2c65}\x{23a}
  3132. No match
  3133. /[A-`]/i,utf
  3134. abcdefghijklmno
  3135. 0: a
  3136. /[\S\V\H]/utf
  3137. /[^\p{Any}]*+x/utf
  3138. x
  3139. 0: x
  3140. /[[:punct:]]/utf,ucp
  3141. \x{b4}
  3142. No match
  3143. /[[:^ascii:]]/utf,ucp
  3144. \x{100}
  3145. 0: \x{100}
  3146. \x{200}
  3147. 0: \x{200}
  3148. \x{300}
  3149. 0: \x{300}
  3150. \x{37e}
  3151. 0: \x{37e}
  3152. \= Expect no match
  3153. aa
  3154. No match
  3155. 99
  3156. No match
  3157. /[[:^ascii:]\w]/utf,ucp
  3158. aa
  3159. 0: a
  3160. 99
  3161. 0: 9
  3162. gg
  3163. 0: g
  3164. \x{100}
  3165. 0: \x{100}
  3166. \x{200}
  3167. 0: \x{200}
  3168. \x{300}
  3169. 0: \x{300}
  3170. \x{37e}
  3171. 0: \x{37e}
  3172. /[\w[:^ascii:]]/utf,ucp
  3173. aa
  3174. 0: a
  3175. 99
  3176. 0: 9
  3177. gg
  3178. 0: g
  3179. \x{100}
  3180. 0: \x{100}
  3181. \x{200}
  3182. 0: \x{200}
  3183. \x{300}
  3184. 0: \x{300}
  3185. \x{37e}
  3186. 0: \x{37e}
  3187. /[^[:ascii:]\W]/utf,ucp
  3188. \x{100}
  3189. 0: \x{100}
  3190. \x{200}
  3191. 0: \x{200}
  3192. \= Expect no match
  3193. aa
  3194. No match
  3195. 99
  3196. No match
  3197. gg
  3198. No match
  3199. \x{37e}
  3200. No match
  3201. /[^[:^ascii:]\d]/utf,ucp
  3202. a
  3203. 0: a
  3204. ~
  3205. 0: ~
  3206. \a
  3207. 0: \x{07}
  3208. \x{7f}
  3209. 0: \x{7f}
  3210. \= Expect no match
  3211. 0
  3212. No match
  3213. \x{389}
  3214. No match
  3215. \x{20ac}
  3216. No match
  3217. /(?=.*b)\pL/
  3218. 11bb
  3219. 0: b
  3220. /(?(?=.*b)(?=.*b)\pL|.*c)/
  3221. 11bb
  3222. 0: b
  3223. /^\x{123}+?$/utf,no_auto_possess
  3224. \x{123}\x{123}\x{123}
  3225. 0: \x{123}\x{123}\x{123}
  3226. /^\x{123}+?$/i,utf,no_auto_possess
  3227. \x{123}\x{122}\x{123}
  3228. 0: \x{123}\x{122}\x{123}
  3229. \= Expect no match
  3230. \x{123}\x{124}\x{123}
  3231. No match
  3232. /\N{U+1234}/utf
  3233. \x{1234}
  3234. 0: \x{1234}
  3235. /[\N{U+1234}]/utf
  3236. \x{1234}
  3237. 0: \x{1234}
  3238. # Test the full list of Unicode "Pattern White Space" characters that are to
  3239. # be ignored by /x. The pattern lines below may show up oddly in text editors
  3240. # or when listed to the screen. Note that characters such as U+2002, which are
  3241. # matched as space by \h and \v are *not* "Pattern White Space".
  3242. /A…‎‏

B/x,utf
  3243. AB
  3244. 0: AB
  3245. /A B/x,utf
  3246. A\x{2002}B
  3247. 0: A\x{2002}B
  3248. \= Expect no match
  3249. AB
  3250. No match
  3251. # -------
  3252. /[^\x{100}-\x{ffff}]*[\x80-\xff]/utf
  3253. \x{99}\x{99}\x{99}
  3254. 0: \x{99}\x{99}\x{99}
  3255. /[^\x{100}-\x{ffff}ABC]*[\x80-\xff]/utf
  3256. \x{99}\x{99}\x{99}
  3257. 0: \x{99}\x{99}\x{99}
  3258. /[^\x{100}-\x{ffff}]*[\x80-\xff]/i,utf
  3259. \x{99}\x{99}\x{99}
  3260. 0: \x{99}\x{99}\x{99}
  3261. # Script run tests
  3262. /^(*script_run:.{4})/utf
  3263. abcd Latin x4
  3264. 0: abcd
  3265. \x{2e80}\x{2fa1d}\x{3041}\x{30a1} Han Han Hiragana Katakana
  3266. 0: \x{2e80}\x{2fa1d}\x{3041}\x{30a1}
  3267. \x{3041}\x{30a1}\x{3007}\x{3007} Hiragana Katakana Han Han
  3268. 0: \x{3041}\x{30a1}\x{3007}\x{3007}
  3269. \x{30a1}\x{3041}\x{3007}\x{3007} Katakana Hiragana Han Han
  3270. 0: \x{30a1}\x{3041}\x{3007}\x{3007}
  3271. \x{1100}\x{2e80}\x{2e80}\x{1101} Hangul Han Han Hangul
  3272. 0: \x{1100}\x{2e80}\x{2e80}\x{1101}
  3273. \x{2e80}\x{3105}\x{2e80}\x{3105} Han Bopomofo Han Bopomofo
  3274. 0: \x{2e80}\x{3105}\x{2e80}\x{3105}
  3275. \x{02ea}\x{2e80}\x{2e80}\x{3105} Bopomofo-Sk Han Han Bopomofo
  3276. 0: \x{2ea}\x{2e80}\x{2e80}\x{3105}
  3277. \x{3105}\x{2e80}\x{2e80}\x{3105} Bopomofo Han Han Bopomofo
  3278. 0: \x{3105}\x{2e80}\x{2e80}\x{3105}
  3279. \x{0300}cd! Inherited Latin Latin Common
  3280. 0: \x{300}cd!
  3281. \x{0391}12\x{03a9} Greek Common-digits Greek
  3282. 0: \x{391}12\x{3a9}
  3283. \x{0400}12\x{fe2f} Cyrillic Common-digits Cyrillic
  3284. 0: \x{400}12\x{fe2f}
  3285. \x{0531}12\x{fb17} Armenian Common-digits Armenian
  3286. 0: \x{531}12\x{fb17}
  3287. \x{0591}12\x{fb4f} Hebrew Common-digits Hebrew
  3288. 0: \x{591}12\x{fb4f}
  3289. \x{0600}12\x{1eef1} Arabic Common-digits Arabic
  3290. 0: \x{600}12\x{1eef1}
  3291. \x{0600}\x{0660}\x{0669}\x{1eef1} Arabic Arabic-digits Arabic
  3292. 0: \x{600}\x{660}\x{669}\x{1eef1}
  3293. \x{0700}12\x{086a} Syriac Common-digits Syriac
  3294. 0: \x{700}12\x{86a}
  3295. \x{1200}12\x{ab2e} Ethiopic Common-digits Ethiopic
  3296. 0: \x{1200}12\x{ab2e}
  3297. \x{1680}12\x{169c} Ogham Common-digits Ogham
  3298. 0: \x{1680}12\x{169c}
  3299. \x{3041}12\x{3041} Hiragana Common-digits Hiragana
  3300. 0: \x{3041}12\x{3041}
  3301. \x{0980}\x{09e6}\x{09e7}\x{0993} Bengali Bengali-digits Bengali
  3302. 0: \x{980}\x{9e6}\x{9e7}\x{993}
  3303. !cde Common Latin Latin Latin
  3304. 0: !cde
  3305. A..B Latin Common Common Latin
  3306. 0: A..B
  3307. 0abc Ascii-digit Latin Latin Latin
  3308. 0: 0abc
  3309. 1\x{0700}\x{0700}\x{0700} Ascii-digit Syriac x 3
  3310. 0: 1\x{700}\x{700}\x{700}
  3311. \x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
  3312. 0: \x{1a80}\x{1a80}\x{1a40}\x{1a41}
  3313. \= Expect no match
  3314. a\x{370}bcd Latin Greek Latin Latin
  3315. No match
  3316. \x{1100}\x{02ea}\x{02ea}\x{02ea} Hangul Bopomofo x3
  3317. No match
  3318. \x{02ea}\x{02ea}\x{02ea}\x{1100} Bopomofo x3 Hangul
  3319. No match
  3320. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  3321. No match
  3322. \x{0391}\x{09e6}\x{09e7}\x{03a9} Greek Bengali digits Greek
  3323. No match
  3324. \x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
  3325. No match
  3326. \x{0600}\x{0669}7\x{1eef1} Arabic Arabic-digit ascii-digit Arabic
  3327. No match
  3328. A5\x{ff19}B Latin Common-ascii/notascii-digits Latin
  3329. No match
  3330. \x{0300}cd\x{0391} Inherited Latin Latin Greek
  3331. No match
  3332. !cd\x{0391} Common Latin Latin Greek
  3333. No match
  3334. \x{1A80}\x{1A90}\x{1a40}\x{1a41} Tai Tham Hora digit, Tham digit, letters
  3335. No match
  3336. A\x{1d7ce}\x{1d7ff}B Common fancy-common-2-sets-digits Common
  3337. No match
  3338. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3339. No match
  3340. /^(*sr:.{4}|..)/utf
  3341. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3342. 0: \x{2e80}\x{3105}
  3343. /^(*atomic_script_run:.{4}|..)/utf
  3344. \= Expect no match
  3345. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3346. No match
  3347. /^(*asr:.*)/utf
  3348. \= Expect no match
  3349. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3350. No match
  3351. /^(?>(*sr:.*))/utf
  3352. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3353. 0: \x{2e80}\x{3105}\x{2e80}
  3354. /^(*sr:.*)/utf
  3355. \x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
  3356. 0: \x{2e80}\x{3105}\x{2e80}
  3357. \x{10fffd}\x{10fffd}\x{10fffd} Private use (Unknown)
  3358. 0: \x{10fffd}
  3359. /^(*sr:\x{2e80}*)/utf
  3360. \x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
  3361. 0: \x{2e80}\x{2e80}
  3362. /^(*sr:\x{2e80}*)\x{2e80}/utf
  3363. \x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
  3364. 0: \x{2e80}\x{2e80}
  3365. /^(*sr:.*)Test/utf
  3366. Test script run on an empty string
  3367. 0: Test
  3368. /^(*sr:(.{2})){2}/utf
  3369. \x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
  3370. 0: \x{600}7\x{669}\x{1eef1}
  3371. 1: \x{669}\x{1eef1}
  3372. \x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
  3373. 0: \x{1a80}\x{1a80}\x{1a40}\x{1a41}
  3374. 1: \x{1a40}\x{1a41}
  3375. \x{1A80}\x{1a40}\x{1A90}\x{1a41} Tai Tham Hora digit, letter, Tham digit, letter
  3376. 0: \x{1a80}\x{1a40}\x{1a90}\x{1a41}
  3377. 1: \x{1a90}\x{1a41}
  3378. \= Expect no match
  3379. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  3380. No match
  3381. /^(*sr:\S*)/utf
  3382. \x{1cf4}\x{20f0}\x{900}\x{11305} [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Gran
  3383. 0: \x{1cf4}\x{20f0}\x{900}
  3384. \x{1cf4}\x{20f0}\x{11305}\x{900} [Dev,Gran,Kan] [Dev,Gran,Lat] Gran Dev
  3385. 0: \x{1cf4}\x{20f0}\x{11305}
  3386. \x{1cf4}\x{20f0}\x{900}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Lat
  3387. 0: \x{1cf4}\x{20f0}\x{900}
  3388. \x{1cf4}\x{20f0}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Lat
  3389. 0: \x{1cf4}\x{20f0}
  3390. \x{20f0}ABC [Dev,Gran,Lat] Lat
  3391. 0: \x{20f0}ABC
  3392. XYZ\x{20f0}ABC Lat [Dev,Gran,Lat] Lat
  3393. 0: XYZ\x{20f0}ABC
  3394. \x{a36}\x{a33}\x{900} [Dev,...] [Dev,...] Dev
  3395. 0: \x{a36}\x{a33}
  3396. \x{3001}\x{2e80}\x{3041}\x{30a1} [Bopo, Han, etc] Han Hira Kata
  3397. 0: \x{3001}\x{2e80}\x{3041}\x{30a1}
  3398. \x{3001}\x{30a1}\x{2e80}\x{3041} [Bopo, Han, etc] Kata Han Hira
  3399. 0: \x{3001}\x{30a1}\x{2e80}\x{3041}
  3400. \x{3001}\x{3105}\x{2e80}\x{1101} [Bopo, Han, etc] Bopomofo Han Hangul
  3401. 0: \x{3001}\x{3105}\x{2e80}
  3402. \x{3105}\x{3001}\x{2e80}\x{1101} Bopomofo [Bopo, Han, etc] Han Hangul
  3403. 0: \x{3105}\x{3001}\x{2e80}
  3404. \x{3031}\x{3041}\x{30a1}\x{2e80} [Hira Kata] Hira Kata Han
  3405. 0: \x{3031}\x{3041}\x{30a1}\x{2e80}
  3406. \x{060c}\x{06d4}\x{0600}\x{10d00}\x{0700} [Arab Rohg Syrc Thaa] [Arab Rohg] Arab Rohg Syrc
  3407. 0: \x{60c}\x{6d4}\x{600}
  3408. \x{060c}\x{06d4}\x{0700}\x{0600}\x{10d00} [Arab Rohg Syrc Thaa] [Arab Rohg] Syrc Arab Rohg
  3409. 0: \x{60c}\x{6d4}
  3410. \x{2e80}\x{3041}\x{3001}\x{3031}\x{2e80} Han Hira [Bopo, Han, etc] [Hira Kata] Han
  3411. 0: \x{2e80}\x{3041}\x{3001}\x{3031}\x{2e80}
  3412. /(?<!)(*sr:)/
  3413. /(?<!X(*sr:B)C)/
  3414. /(?<=abc(?=X(*sr:BCY)Z)XBCYZ)./
  3415. abcXBCYZ!
  3416. 0: !
  3417. /(?<=abc(?=X(*sr:BXY)CCC)XBXYCCC)./
  3418. abcXBXYCCC!
  3419. 0: !
  3420. /^(*sr:\S*)/utf
  3421. \x{10d00}\x{10d00}\x{06d4} Rohingya Rohingya Arabic-full-stop
  3422. 0: \x{10d00}\x{10d00}\x{6d4}
  3423. \x{06d4}\x{10d00}\x{10d00} Arabic-full-stop Rohingya Rohingya
  3424. 0: \x{6d4}\x{10d00}\x{10d00}
  3425. \x{10d00}\x{10d00}\x{0363} Rohingya Rohingya Inherited-extend-Latin
  3426. 0: \x{10d00}\x{10d00}
  3427. \x{0363}\x{10d00}\x{10d00} Inherited-extend-Latin Rohingya Rohingya
  3428. 0: \x{363}
  3429. AB\x{0363} Latin Latin Inherited-extend-Latin
  3430. 0: AB\x{363}
  3431. \x{0363}AB Inherited-extend-Latin Latin Latin
  3432. 0: \x{363}AB
  3433. AB\x{1cf7} Latin Latin Common-extended-Beng
  3434. 0: AB
  3435. \x{1cf7}AB Common-extend-Beng Latin Latin
  3436. 0: \x{1cf7}
  3437. \x{1cf7}\x{0993} Common-extend-Beng Bengali
  3438. 0: \x{1cf7}\x{993}
  3439. A\x{1abe}BC Test enclosing mark
  3440. 0: A\x{1abe}BC
  3441. \x{0370}\x{1abe}\x{0371} Which can occur with any script (Greek here)
  3442. 0: \x{370}\x{1abe}\x{371}
  3443. \x{3001}\x{adf9}\x{3001} [.. Hangul ..] Hangul [.. Hangul ..]
  3444. 0: \x{3001}\x{adf9}\x{3001}
  3445. \x{3400}\x{3001}XXX Han [Han etc.]
  3446. 0: \x{3400}\x{3001}
  3447. \x{3400}\x{1cd5} Han [Bengali Devanagari]
  3448. 0: \x{3400}
  3449. \x{ac01}\x{3400} Hangul [.. Hangul ..]
  3450. 0: \x{ac01}\x{3400}
  3451. \x{ac01}\x{1cd5} Hangul [Bengali Devanagari]
  3452. 0: \x{ac01}
  3453. \x{102e0}\x{06d4}\x{1ee4d} [Arabic Coptic] [Arab Rohingya] Arabic
  3454. 0: \x{102e0}\x{6d4}\x{1ee4d}
  3455. \x{102e0}\x{06d4}\x{2cc9} [Arabic Coptic] [Arab Rohingya] Coptic
  3456. 0: \x{102e0}\x{6d4}
  3457. \x{102e0}\x{06d4}\x{10d30} [Arabic Coptic] [Arab Rohingya] Rohingya
  3458. 0: \x{102e0}\x{6d4}
  3459. # Test loop breaking for empty string match
  3460. /^(*sr:A|)*BCD/utf
  3461. AABCD
  3462. 0: AABCD
  3463. ABCD
  3464. 0: ABCD
  3465. BCD
  3466. 0: BCD
  3467. # The use of (*ACCEPT) breaks script run checking
  3468. /^(*sr:.*(*ACCEPT)ZZ)/utf
  3469. \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  3470. 0: \x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
  3471. # -------
  3472. # Test group names containing non-ASCII letters and digits
  3473. /(?'ABáC'...)\g{ABáC}/utf
  3474. abcabcdefg
  3475. 0: abcabc
  3476. 1: abc
  3477. /(?'XʰABC'...)/utf
  3478. xyzpq
  3479. 0: xyz
  3480. 1: xyz
  3481. /(?'XאABC'...)/utf
  3482. 12345
  3483. 0: 123
  3484. 1: 123
  3485. /(?'XᾈABC'...)/utf
  3486. %^&*(...
  3487. 0: %^&
  3488. 1: %^&
  3489. /(?'𐨐ABC'...)/utf
  3490. abcde
  3491. 0: abc
  3492. 1: abc
  3493. /^(?'אABC'...)(?&אABC)(?P=אABC)/utf
  3494. 123123123456
  3495. 0: 123123123
  3496. 1: 123
  3497. /^(?'אABC'...)(?&אABC)/utf
  3498. 123123123456
  3499. 0: 123123
  3500. 1: 123
  3501. /\X*/
  3502. \xF3aaa\xE4\xEA\xEB\xFEa
  3503. 0: \xf3aaa\xe4\xea\xeb\xfea
  3504. /Я/i,utf
  3505. \x{42f}
  3506. 0: \x{42f}
  3507. \x{44f}
  3508. 0: \x{44f}
  3509. /(?=Я)/i,utf
  3510. \x{42f}
  3511. 0:
  3512. \x{44f}
  3513. 0:
  3514. # -----------------------------------------------------------------------------
  3515. # Tests for bidi control and bidi class properties.
  3516. /\p{ bidi_control }/utf
  3517. -->\x{202c}<--
  3518. 0: \x{202c}
  3519. /\p{bidicontrol}+/utf
  3520. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3521. 0: \x{61c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}
  3522. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3523. 0: \x{2066}\x{2067}\x{2068}\x{2069}
  3524. /\p{bidic}+?/utf
  3525. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3526. 0: \x{61c}
  3527. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3528. 0: \x{2066}
  3529. /\p{bidi_control}++/utf
  3530. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3531. 0: \x{61c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}
  3532. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3533. 0: \x{2066}\x{2067}\x{2068}\x{2069}
  3534. /[\p{bidi_c}]/utf
  3535. -->\x{202c}<--
  3536. 0: \x{202c}
  3537. /[\p{bidicontrol}]+/utf
  3538. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3539. 0: \x{61c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}
  3540. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3541. 0: \x{2066}\x{2067}\x{2068}\x{2069}
  3542. /[\p{bidicontrol}]+?/utf
  3543. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3544. 0: \x{61c}
  3545. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3546. 0: \x{2066}
  3547. /[\p{bidicontrol}]++/utf
  3548. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3549. 0: \x{61c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}
  3550. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3551. 0: \x{2066}\x{2067}\x{2068}\x{2069}
  3552. /[\p{bidicontrol}<>]+/utf
  3553. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3554. 0: >\x{61c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<
  3555. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3556. 0: >\x{2066}\x{2067}\x{2068}\x{2069}<
  3557. /\P{bidicontrol}+/g,utf
  3558. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3559. 0: -->
  3560. 0: <--
  3561. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3562. 0: -->
  3563. 0: <--
  3564. /\p{^bidicontrol}+/g,utf
  3565. -->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
  3566. 0: -->
  3567. 0: <--
  3568. -->\x{2066}\x{2067}\x{2068}\x{2069}<--
  3569. 0: -->
  3570. 0: <--
  3571. /\p{bidi class = al}/utf
  3572. -->\x{061D}<--
  3573. 0: \x{61d}
  3574. /\p{bc = al}+/utf
  3575. -->\x{061D}\x{061e}\x{061f}<--
  3576. 0: \x{61d}\x{61e}\x{61f}
  3577. /\p{bidi_class : AL}+?/utf
  3578. -->\x{061D}\x{061e}\x{061f}<--
  3579. 0: \x{61d}
  3580. /\p{Bidi_Class : AL}++/utf
  3581. -->\x{061D}\x{061e}\x{061f}<--
  3582. 0: \x{61d}\x{61e}\x{61f}
  3583. /\p{b_c = aN}+/utf
  3584. -->\x{061D}\x{0602}\x{0604}\x{061f}<--
  3585. 0: \x{602}\x{604}
  3586. /\p{bidi class = B}+/utf
  3587. -->\x{0a}\x{0d}\x{01c}\x{01e}\x{085}\x{2029}<--
  3588. 0: \x{0a}\x{0d}\x{1c}\x{1e}\x{85}\x{2029}
  3589. /\p{bidi class:BN}+/utf
  3590. -->\x{0}\x{08}\x{200c}\x{fffe}\x{dfffe}\x{10ffff}<--
  3591. 0: \x{00}\x{08}\x{200c}\x{fffe}\x{dfffe}\x{10ffff}
  3592. /\p{bidiclass:cs}+/utf
  3593. -->,.\x{060c}\x{ff1a}<--
  3594. 0: ,.\x{60c}\x{ff1a}
  3595. /\p{bidiclass:En}+/utf
  3596. -->09\x{b2}\x{2074}\x{1fbf9}<--
  3597. 0: 09\x{b2}\x{2074}\x{1fbf9}
  3598. /\p{bidiclass:es}+/utf
  3599. ==>+-\x{207a}\x{ff0d}<==
  3600. 0: +-\x{207a}\x{ff0d}
  3601. /\p{bidiclass:et}+/utf
  3602. -->#\{24}%\x{a2}\x{A838}\x{1e2ff}<--
  3603. 0: #
  3604. /\p{bidiclass:FSI}+/utf
  3605. -->\x{2068}<--
  3606. 0: \x{2068}
  3607. /\p{bidi class:L}+/utf
  3608. -->ABC<--
  3609. 0: ABC
  3610. /\P{bidi class:L}+/utf
  3611. -->ABC<--
  3612. 0: -->
  3613. /\p{bidi class:LRE}+\p{bidiclass=lri}*\p{bidiclass:lro}/utf
  3614. -->\x{202a}\x{2066}\x{202d}<--
  3615. 0: \x{202a}\x{2066}\x{202d}
  3616. /\p{bidi class:NSM}+/utf
  3617. -->\x{9bc}\x{a71}\x{e31}<--
  3618. 0: \x{9bc}\x{a71}\x{e31}
  3619. /\p{bidi class:ON}+/utf
  3620. -->\x{21}'()*;@\x{384}\x{2039}<=-
  3621. 0: >!'()*;@\x{384}\x{2039}<=
  3622. /\p{bidiclass:pdf}\p{bidiclass:pdi}/utf
  3623. -->\x{202c}\x{2069}<--
  3624. 0: \x{202c}\x{2069}
  3625. /\p{bidi class:R}+/utf
  3626. -->\x{590}\x{5c6}\x{200f}\x{10805}<--
  3627. 0: \x{590}\x{5c6}\x{200f}\x{10805}
  3628. /\p{bidi class:RLE}+\p{bidi class:RLI}*\p{bidi class:RLO}+/utf
  3629. -->\x{202b}\x{2067}\x{202e}<--
  3630. 0: \x{202b}\x{2067}\x{202e}
  3631. /\p{bidi class:S}+\p{bidiclass:WS}+/utf
  3632. -->\x{9}\x{b}\x{1f} \x{c} \x{2000} \x{3000}<--
  3633. 0: \x{09}\x{0b}\x{1f} \x{0c} \x{2000} \x{3000}
  3634. # -----------------------------------------------------------------------------
  3635. /[\p{taml}\p{sc:ugar}]+/utf
  3636. \x{0b82}\x{10380}
  3637. 0: \x{b82}\x{10380}
  3638. /^[\p{sc:Arabic}]/utf
  3639. \= Expect no match
  3640. \x{650}
  3641. No match
  3642. \x{651}
  3643. No match
  3644. \x{652}
  3645. No match
  3646. \x{653}
  3647. No match
  3648. \x{654}
  3649. No match
  3650. \x{655}
  3651. No match
  3652. # -----------------------------------------------------------------------------
  3653. # Tests for newly-added Boolean Properties
  3654. /\p{ahex}\p{asciihexdigit}/utf
  3655. >4F<
  3656. 0: 4F
  3657. /\p{alpha}\p{alphabetic}/g,utf
  3658. >AB<>\x{148}\x{1234}
  3659. 0: AB
  3660. 0: \x{148}\x{1234}
  3661. /\p{ascii}\p{ascii}/g,utf
  3662. >AB<>\x{148}\x{1234}
  3663. 0: >A
  3664. 0: B<
  3665. /\p{Bidi_C}\p{bidicontrol}/g,utf
  3666. >\x{202d}\x{2069}<
  3667. 0: \x{202d}\x{2069}
  3668. /\p{Bidi_M}\p{bidimirrored}/g,utf
  3669. >\x{202d}\x{2069}<>\x{298b}\x{bb}<
  3670. 0: <>
  3671. 0: \x{298b}\x{bb}
  3672. /\p{cased}\p{cased}/g,utf
  3673. >AN<>\x{149}\x{120}<
  3674. 0: AN
  3675. 0: \x{149}\x{120}
  3676. /\p{caseignorable}\p{ci}/g,utf
  3677. >AN<>\x{60}\x{859}<
  3678. 0: `\x{859}
  3679. /\p{changeswhencasefolded}\p{cwcf}/g,utf
  3680. >AN<>\x{149}\x{120}<
  3681. 0: AN
  3682. 0: \x{149}\x{120}
  3683. /\p{changeswhencasemapped}\p{cwcm}/g,utf
  3684. >AN<>\x{149}\x{120}<
  3685. 0: AN
  3686. 0: \x{149}\x{120}
  3687. /\p{changeswhenlowercased}\p{cwl}/g,utf
  3688. >AN<>\x{149}\x{120}<>yz<
  3689. 0: AN
  3690. /\p{changeswhenuppercased}\p{cwu}/g,utf
  3691. >AN<>\x{149}\x{120}<>yz<
  3692. 0: yz
  3693. /\p{changeswhentitlecased}\p{cwt}/g,utf
  3694. >AN<>\x{149}\x{120}<>yz<
  3695. 0: yz
  3696. /\p{dash}\p{dash}/g,utf
  3697. >\x{2d}\x{1400}<>yz<
  3698. 0: -\x{1400}
  3699. /\p{defaultignorablecodepoint}\p{di}/g,utf
  3700. >AN<>\x{ad}\x{e0fff}<>yz<
  3701. 0: \x{ad}\x{e0fff}
  3702. /\p{deprecated}\p{dep}/g,utf
  3703. >AN<>\x{149}\x{e0001}<>yz<
  3704. 0: \x{149}\x{e0001}
  3705. /\p{diacritic}\p{dia}/g,utf
  3706. >AN<>\x{f84}\x{5e}<>yz<
  3707. 0: \x{f84}^
  3708. /\p{emojicomponent}\p{ecomp}/g,utf
  3709. >AN<>\x{200d}\x{e007f}<>yz<
  3710. 0: \x{200d}\x{e007f}
  3711. /\p{emojimodifier}\p{emod}/g,utf
  3712. >AN<>\x{1f3fb}\x{1f3ff}<>yz<
  3713. 0: \x{1f3fb}\x{1f3ff}
  3714. /\p{emojipresentation}\p{epres}/g,utf
  3715. >AN<>\x{2653}\x{1f6d2}<>yz<
  3716. 0: \x{2653}\x{1f6d2}
  3717. /\p{extender}\p{ext}/g,utf
  3718. >AN<>\x{1e944}\x{b7}<>yz<
  3719. 0: \x{1e944}\x{b7}
  3720. /\p{extendedpictographic}\p{extpict}/g,utf
  3721. >AN<>\x{26cf}\x{ae}<>yz<
  3722. 0: \x{26cf}\x{ae}
  3723. /\p{graphemebase}\p{grbase}/g,utf
  3724. >AN<>\x{10f}\x{60}<>yz<
  3725. 0: >A
  3726. 0: N<
  3727. 0: >\x{10f}
  3728. 0: `<
  3729. 0: >y
  3730. 0: z<
  3731. /\p{graphemeextend}\p{grext}/g,utf
  3732. >AN<>\x{300}\x{b44}<>yz<
  3733. 0: \x{300}\x{b44}
  3734. /\p{hexdigit}\p{hex}/g,utf
  3735. >AF23<>\x{ff46}\x{ff10}<>yz<
  3736. 0: AF
  3737. 0: 23
  3738. 0: \x{ff46}\x{ff10}
  3739. /\p{idcontinue}\p{idc}/g,utf
  3740. >AF23<>\x{146}\x{7a}<>yz<
  3741. 0: AF
  3742. 0: 23
  3743. 0: \x{146}z
  3744. 0: yz
  3745. /\p{ideographic}\p{ideo}/g,utf
  3746. >AF23<>\x{30000}\x{3006}<>yz<
  3747. 0: \x{30000}\x{3006}
  3748. /\p{idstart}\p{ids}/g,utf
  3749. >AF23<>\x{146}\x{7a}<>yz<
  3750. 0: AF
  3751. 0: \x{146}z
  3752. 0: yz
  3753. /\p{idsbinaryoperator}\p{idsb}/g,utf
  3754. >AF23<>\x{2ff0}\x{2ffb}<>yz<\x{2ff2}\x{2ff1}
  3755. 0: \x{2ff0}\x{2ffb}
  3756. /\p{idstrinaryoperator}\p{idst}/g,utf
  3757. >AF23<>\x{2ff2}\x{2ff3}<>yz<
  3758. 0: \x{2ff2}\x{2ff3}
  3759. /\p{Join Control}\p{joinc}/g,utf
  3760. >AF23<>\x{200c}\x{200d}<>yz<
  3761. 0: \x{200c}\x{200d}
  3762. /\p{logical_order_exception}\p{loe}/g,utf
  3763. >AF23<>\x{e40}\x{aabc}<>yz<
  3764. 0: \x{e40}\x{aabc}
  3765. /\p{Lowercase}\p{lower}/g,utf
  3766. >AF23<>\x{146}\x{7a}<>yz<
  3767. 0: \x{146}z
  3768. 0: yz
  3769. /\p{math}\p{math}/g,utf
  3770. >AF23<>\x{2215}\x{2b}<>yz<
  3771. 0: <>
  3772. 0: \x{2215}+
  3773. 0: <>
  3774. /\p{Non Character Code Point}\p{nchar}/g,utf
  3775. >AF23<>\x{10ffff}\x{fdd0}<>yz<
  3776. 0: \x{10ffff}\x{fdd0}
  3777. /\p{patternsyntax}\p{patsyn}/g,utf
  3778. >AF23<>\x{21cd}\x{21}<>yz<
  3779. 0: <>
  3780. 0: \x{21cd}!
  3781. 0: <>
  3782. /\p{patternwhitespace}\p{patws}/g,utf
  3783. >AF23<>\x{2029}\x{85}<>yz<
  3784. 0: \x{2029}\x{85}
  3785. /\p{prependedconcatenationmark}\p{pcm}/g,utf
  3786. >AF23<>\x{600}\x{110cd}<>yz<
  3787. 0: \x{600}\x{110cd}
  3788. /\p{quotationmark}\p{qmark}/g,utf
  3789. >AF23<>\x{ff63}\x{22}<>yz<
  3790. 0: \x{ff63}"
  3791. /\p{radical}\p{radical}/g,utf
  3792. >AF23<>\x{2fd5}\x{2e80}<>yz<
  3793. 0: \x{2fd5}\x{2e80}
  3794. /\p{regionalindicator}\p{ri}/g,utf
  3795. >AF23<>\x{1f1e6}\x{1f1ff}<>yz<
  3796. 0: \x{1f1e6}\x{1f1ff}
  3797. /=\p{whitespace}\p{space}\p{wspace}=/g,utf
  3798. >AF23<=\x{d}\x{1680}\x{3000}=>yz<
  3799. 0: =\x{0d}\x{1680}\x{3000}=
  3800. /\p{sentenceterminal}\p{sterm}/g,utf
  3801. >AF23<>\x{1da88}\x{2e}<>yz<
  3802. 0: \x{1da88}.
  3803. /\p{terminalpunctuation}\p{term}/g,utf
  3804. >AF23<>\x{1da88}\x{2e}<>yz<
  3805. 0: \x{1da88}.
  3806. /\p{unified ideograph}\p{uideo}/g,utf
  3807. >AF23<>\x{30000}\x{3400}<>yz<
  3808. 0: \x{30000}\x{3400}
  3809. /\p{UPPERcase}\p{upper}/g,utf
  3810. >AF23<>\x{146}\x{7a}<>yz<
  3811. 0: AF
  3812. /\p{variationselector}\p{vs}/g,utf
  3813. >AF23<>\x{180b}\x{e01ef}<>yz<
  3814. 0: \x{180b}\x{e01ef}
  3815. /\p{xidcontinue}\p{xidc}/g,utf
  3816. >AF23<>\x{146}\x{30}<>yz<
  3817. 0: AF
  3818. 0: 23
  3819. 0: \x{146}0
  3820. 0: yz
  3821. # -----------------------------------------------------------------------------
  3822. # Variable-length lookbehinds.
  3823. /(?<=áb?c).../g,utf
  3824. ábcdèfgácxyz
  3825. 0: d\x{e8}f
  3826. 0: xyz
  3827. /(?<=PQR|áb?c).../g,utf
  3828. ábcdèfgácxyzPQR123
  3829. 0: d\x{e8}f
  3830. 0: xyz
  3831. 0: 123
  3832. /(?<=áb?c|PQR).../g,utf
  3833. ábcdèfgácxyzPQR123
  3834. 0: d\x{e8}f
  3835. 0: xyz
  3836. 0: 123
  3837. /(?<=PQ|áb?c).../g,utf
  3838. ábcdèfgácxyzPQR123
  3839. 0: d\x{e8}f
  3840. 0: xyz
  3841. 0: R12
  3842. /(?<=áb?c|PQ).../g,utf
  3843. ábcdèfgácxyzPQR123
  3844. 0: d\x{e8}f
  3845. 0: xyz
  3846. 0: R12
  3847. /(?<=á(b?c|d?è?è)f)X./g,utf
  3848. ácfX1zzzáèfX2zzzádèèfX3zzzX4zzz
  3849. 0: X1
  3850. 1: c
  3851. 0: X2
  3852. 1: \x{e8}
  3853. 0: X3
  3854. 1: d\x{e8}\x{e8}
  3855. /(?<!á(b?c|d?è?è)f)X./g,utf
  3856. ácfX1zzzáèfX2zzzádèèfX3zzzX4zzz
  3857. 0: X4
  3858. /(?(?<=áb?c)d|è)/utf
  3859. ábcdèfg
  3860. 0: d
  3861. ácdèfg
  3862. 0: d
  3863. áxdèfg
  3864. 0: \x{e8}
  3865. /(?<=\d{2,3}|áBC)./utf
  3866. áBCD
  3867. 0: D
  3868. /(?<=á(b?c){3}d)X/utf
  3869. ZXácbccdXYZ
  3870. 0: X
  3871. 1: c
  3872. /(?<=á(b?c){0}d)X/utf
  3873. ZXádXYZ
  3874. 0: X
  3875. /(?<=á?(b?c){0}d)X./utf
  3876. ZXádXYZ
  3877. 0: XY
  3878. # --------------------------------------------------------------------------
  3879. /\N{ U+1234 }/utf
  3880. \x{1234}
  3881. 0: \x{1234}
  3882. /\o{ 1234 }/utf
  3883. x\o{1234}y
  3884. 0: \x{29c}
  3885. /\x{ 1234 }/utf
  3886. x\x{1234}y
  3887. 0: \x{1234}
  3888. /\p{ L }/
  3889. 23AB56
  3890. 0: A
  3891. /\w+/utf,ucp
  3892. --cafe\x{300}_au\x{203f}lait!
  3893. 0: cafe\x{300}_au\x{203f}lait
  3894. /[\w]+/utf,ucp
  3895. --cafe\x{300}_au\x{203f}lait!
  3896. 0: cafe\x{300}_au\x{203f}lait
  3897. /[[:word:]]+/utf,ucp
  3898. --cafe\x{300}_au\x{203f}lait!
  3899. 0: cafe\x{300}_au\x{203f}lait
  3900. /[[:xdigit:]]+/utf,ucp
  3901. --123ef\x{ff10}\x{ff19}\x{ff21}\x{ff26}\x{ff1a}
  3902. 0: 123ef\x{ff10}\x{ff19}\x{ff21}\x{ff26}
  3903. /\b.+?\b/utf,ucp
  3904. --cafe\x{300}_au\x{203f}lait!
  3905. 0: cafe\x{300}_au\x{203f}lait
  3906. /caf\B.+?\B/utf,ucp
  3907. --cafe\x{300}_au\x{203f}lait!
  3908. 0: cafe
  3909. # End of testinput4