2021-12-21 16:39:46 +01:00
|
|
|
|
# This set of tests is for UTF support, including Unicode properties. The
|
2014-07-25 18:35:51 +02:00
|
|
|
|
# Unicode tests are all compatible with all versions of Perl >= 5.10, but
|
|
|
|
|
# some of the property tests may differ because of different versions of
|
|
|
|
|
# Unicode in use by PCRE2 and Perl.
|
|
|
|
|
|
2020-09-13 17:56:32 +02:00
|
|
|
|
# WARNING: Use only / as the pattern delimiter. Although pcre2test supports
|
|
|
|
|
# a number of delimiters, all those other than / give problems with the
|
|
|
|
|
# perltest.sh script.
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2015-09-08 19:01:17 +02:00
|
|
|
|
#newline_default lf anycrlf any
|
2014-07-25 18:35:51 +02:00
|
|
|
|
#perltest
|
|
|
|
|
|
|
|
|
|
/a.b/utf
|
|
|
|
|
acb
|
|
|
|
|
a\x7fb
|
|
|
|
|
a\x{100}b
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\nb
|
|
|
|
|
|
|
|
|
|
/a(.{3})b/utf
|
|
|
|
|
a\x{4000}xyb
|
|
|
|
|
a\x{4000}\x7fyb
|
|
|
|
|
a\x{4000}\x{100}yb
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{4000}b
|
|
|
|
|
ac\ncb
|
|
|
|
|
|
|
|
|
|
/a(.*?)(.)/
|
|
|
|
|
a\xc0\x88b
|
|
|
|
|
|
|
|
|
|
/a(.*?)(.)/utf
|
|
|
|
|
a\x{100}b
|
|
|
|
|
|
|
|
|
|
/a(.*)(.)/
|
|
|
|
|
a\xc0\x88b
|
|
|
|
|
|
|
|
|
|
/a(.*)(.)/utf
|
|
|
|
|
a\x{100}b
|
|
|
|
|
|
|
|
|
|
/a(.)(.)/
|
|
|
|
|
a\xc0\x92bcd
|
|
|
|
|
|
|
|
|
|
/a(.)(.)/utf
|
|
|
|
|
a\x{240}bcd
|
|
|
|
|
|
|
|
|
|
/a(.?)(.)/
|
|
|
|
|
a\xc0\x92bcd
|
|
|
|
|
|
|
|
|
|
/a(.?)(.)/utf
|
|
|
|
|
a\x{240}bcd
|
|
|
|
|
|
|
|
|
|
/a(.??)(.)/
|
|
|
|
|
a\xc0\x92bcd
|
|
|
|
|
|
|
|
|
|
/a(.??)(.)/utf
|
|
|
|
|
a\x{240}bcd
|
|
|
|
|
|
|
|
|
|
/a(.{3})b/utf
|
|
|
|
|
a\x{1234}xyb
|
|
|
|
|
a\x{1234}\x{4321}yb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}b
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{1234}b
|
|
|
|
|
ac\ncb
|
|
|
|
|
|
|
|
|
|
/a(.{3,})b/utf
|
|
|
|
|
a\x{1234}xyb
|
|
|
|
|
a\x{1234}\x{4321}yb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}b
|
|
|
|
|
axxxxbcdefghijb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{1234}b
|
|
|
|
|
|
|
|
|
|
/a(.{3,}?)b/utf
|
|
|
|
|
a\x{1234}xyb
|
|
|
|
|
a\x{1234}\x{4321}yb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}b
|
|
|
|
|
axxxxbcdefghijb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{1234}b
|
|
|
|
|
|
|
|
|
|
/a(.{3,5})b/utf
|
|
|
|
|
a\x{1234}xyb
|
|
|
|
|
a\x{1234}\x{4321}yb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}b
|
|
|
|
|
axxxxbcdefghijb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
|
|
|
|
axbxxbcdefghijb
|
|
|
|
|
axxxxxbcdefghijb
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{1234}b
|
|
|
|
|
axxxxxxbcdefghijb
|
|
|
|
|
|
|
|
|
|
/a(.{3,5}?)b/utf
|
|
|
|
|
a\x{1234}xyb
|
|
|
|
|
a\x{1234}\x{4321}yb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}b
|
|
|
|
|
axxxxbcdefghijb
|
|
|
|
|
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
|
|
|
|
axbxxbcdefghijb
|
|
|
|
|
axxxxxbcdefghijb
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a\x{1234}b
|
|
|
|
|
axxxxxxbcdefghijb
|
|
|
|
|
|
|
|
|
|
/^[a\x{c0}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}
|
|
|
|
|
|
|
|
|
|
/(?<=aXb)cd/utf
|
|
|
|
|
aXbcd
|
|
|
|
|
|
|
|
|
|
/(?<=a\x{100}b)cd/utf
|
|
|
|
|
a\x{100}bcd
|
|
|
|
|
|
|
|
|
|
/(?<=a\x{100000}b)cd/utf
|
|
|
|
|
a\x{100000}bcd
|
|
|
|
|
|
|
|
|
|
/(?:\x{100}){3}b/utf
|
|
|
|
|
\x{100}\x{100}\x{100}b
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}\x{100}b
|
|
|
|
|
|
|
|
|
|
/\x{ab}/utf
|
|
|
|
|
\x{ab}
|
|
|
|
|
\xc2\xab
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x00{ab}
|
|
|
|
|
|
|
|
|
|
/(?<=(.))X/utf
|
|
|
|
|
WXYZ
|
|
|
|
|
\x{256}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/[^a]+/g,utf
|
|
|
|
|
bcd
|
|
|
|
|
\x{100}aY\x{256}Z
|
|
|
|
|
|
|
|
|
|
/^[^a]{2}/utf
|
|
|
|
|
\x{100}bc
|
|
|
|
|
|
|
|
|
|
/^[^a]{2,}/utf
|
|
|
|
|
\x{100}bcAa
|
|
|
|
|
|
|
|
|
|
/^[^a]{2,}?/utf
|
|
|
|
|
\x{100}bca
|
|
|
|
|
|
|
|
|
|
/[^a]+/gi,utf
|
|
|
|
|
bcd
|
|
|
|
|
\x{100}aY\x{256}Z
|
|
|
|
|
|
|
|
|
|
/^[^a]{2}/i,utf
|
|
|
|
|
\x{100}bc
|
|
|
|
|
|
|
|
|
|
/^[^a]{2,}/i,utf
|
|
|
|
|
\x{100}bcAa
|
|
|
|
|
|
|
|
|
|
/^[^a]{2,}?/i,utf
|
|
|
|
|
\x{100}bca
|
|
|
|
|
|
|
|
|
|
/\x{100}{0,0}/utf
|
|
|
|
|
abcd
|
|
|
|
|
|
|
|
|
|
/\x{100}?/utf
|
|
|
|
|
abcd
|
|
|
|
|
\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}{0,3}/utf
|
|
|
|
|
\x{100}\x{100}
|
|
|
|
|
\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}*/utf
|
|
|
|
|
abce
|
|
|
|
|
\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}{1,1}/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}{1,3}/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}+/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\x{100}{3}/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}XX
|
|
|
|
|
|
|
|
|
|
/\x{100}{3,5}/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
|
|
|
|
|
|
|
|
|
|
/\x{100}{3,}/utf
|
|
|
|
|
abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
|
|
|
|
|
|
|
|
|
|
/(?<=a\x{100}{2}b)X/utf,aftertext
|
|
|
|
|
Xyyya\x{100}\x{100}bXzzz
|
|
|
|
|
|
|
|
|
|
/\D*/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
|
|
|
|
|
|
/\D*/utf
|
|
|
|
|
\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/\D/utf
|
|
|
|
|
1X2
|
|
|
|
|
1\x{100}2
|
|
|
|
|
|
|
|
|
|
/>\S/utf
|
|
|
|
|
> >X Y
|
|
|
|
|
> >\x{100} Y
|
|
|
|
|
|
|
|
|
|
/\d/utf
|
|
|
|
|
\x{100}3
|
|
|
|
|
|
|
|
|
|
/\s/utf
|
|
|
|
|
\x{100} X
|
|
|
|
|
|
|
|
|
|
/\D+/utf
|
|
|
|
|
12abcd34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
/\D{2,3}/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
12ab34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1234
|
|
|
|
|
12a34
|
|
|
|
|
|
|
|
|
|
/\D{2,3}?/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
12ab34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1234
|
|
|
|
|
12a34
|
|
|
|
|
|
|
|
|
|
/\d+/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
|
|
|
|
|
/\d{2,3}/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
1234abcd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1.4
|
|
|
|
|
|
|
|
|
|
/\d{2,3}?/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
1234abcd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1.4
|
|
|
|
|
|
|
|
|
|
/\S+/utf
|
|
|
|
|
12abcd34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\ \
|
|
|
|
|
|
|
|
|
|
/\S{2,3}/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
1234abcd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\ \
|
|
|
|
|
|
|
|
|
|
/\S{2,3}?/utf
|
|
|
|
|
12abcd34
|
|
|
|
|
1234abcd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\ \
|
|
|
|
|
|
|
|
|
|
/>\s+</utf,aftertext
|
|
|
|
|
12> <34
|
|
|
|
|
|
|
|
|
|
/>\s{2,3}</utf,aftertext
|
|
|
|
|
ab> <cd
|
|
|
|
|
ab> <ce
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
ab> <cd
|
|
|
|
|
|
|
|
|
|
/>\s{2,3}?</utf,aftertext
|
|
|
|
|
ab> <cd
|
|
|
|
|
ab> <ce
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
ab> <cd
|
|
|
|
|
|
|
|
|
|
/\w+/utf
|
|
|
|
|
12 34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
+++=*!
|
|
|
|
|
|
|
|
|
|
/\w{2,3}/utf
|
|
|
|
|
ab cd
|
|
|
|
|
abcd ce
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a.b.c
|
|
|
|
|
|
|
|
|
|
/\w{2,3}?/utf
|
|
|
|
|
ab cd
|
|
|
|
|
abcd ce
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a.b.c
|
|
|
|
|
|
|
|
|
|
/\W+/utf
|
|
|
|
|
12====34
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abcd
|
|
|
|
|
|
|
|
|
|
/\W{2,3}/utf
|
|
|
|
|
ab====cd
|
|
|
|
|
ab==cd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a.b.c
|
|
|
|
|
|
|
|
|
|
/\W{2,3}?/utf
|
|
|
|
|
ab====cd
|
|
|
|
|
ab==cd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
a.b.c
|
|
|
|
|
|
|
|
|
|
/[\x{100}]/utf
|
|
|
|
|
\x{100}
|
|
|
|
|
Z\x{100}
|
|
|
|
|
\x{100}Z
|
|
|
|
|
|
|
|
|
|
/[Z\x{100}]/utf
|
|
|
|
|
Z\x{100}
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{100}Z
|
|
|
|
|
|
|
|
|
|
/[\x{100}\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\x{100}-\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{111}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z-\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{111}cd
|
|
|
|
|
abzcd
|
|
|
|
|
ab|cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[Q\x{100}\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
Q?
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[Q\x{100}-\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{111}cd
|
|
|
|
|
Q?
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[Qz-\x{200}]/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{111}cd
|
|
|
|
|
abzcd
|
|
|
|
|
ab|cd
|
|
|
|
|
Q?
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\x{100}\x{200}]{1,3}/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{200}\x{100}\x{200}\x{100}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\x{100}\x{200}]{1,3}?/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{200}\x{100}\x{200}\x{100}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[Q\x{100}\x{200}]{1,3}/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{200}\x{100}\x{200}\x{100}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[Q\x{100}\x{200}]{1,3}?/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
ab\x{100}cd
|
|
|
|
|
ab\x{200}cd
|
|
|
|
|
ab\x{200}\x{100}\x{200}\x{100}cd
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/(?<=[\x{100}\x{200}])X/utf
|
|
|
|
|
abc\x{200}X
|
|
|
|
|
abc\x{100}X
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
|
|
|
|
|
/(?<=[Q\x{100}\x{200}])X/utf
|
|
|
|
|
abc\x{200}X
|
|
|
|
|
abc\x{100}X
|
|
|
|
|
abQX
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
|
|
|
|
|
/(?<=[\x{100}\x{200}]{3})X/utf
|
|
|
|
|
abc\x{100}\x{200}\x{100}X
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abc\x{200}X
|
|
|
|
|
X
|
|
|
|
|
|
|
|
|
|
/[^\x{100}\x{200}]X/utf
|
|
|
|
|
AX
|
|
|
|
|
\x{150}X
|
|
|
|
|
\x{500}X
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}X
|
|
|
|
|
\x{200}X
|
|
|
|
|
|
|
|
|
|
/[^Q\x{100}\x{200}]X/utf
|
|
|
|
|
AX
|
|
|
|
|
\x{150}X
|
|
|
|
|
\x{500}X
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}X
|
|
|
|
|
\x{200}X
|
|
|
|
|
QX
|
|
|
|
|
|
|
|
|
|
/[^\x{100}-\x{200}]X/utf
|
|
|
|
|
AX
|
|
|
|
|
\x{500}X
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}X
|
|
|
|
|
\x{150}X
|
|
|
|
|
\x{200}X
|
|
|
|
|
|
|
|
|
|
/[z-\x{100}]/i,utf
|
|
|
|
|
z
|
|
|
|
|
Z
|
|
|
|
|
\x{100}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{102}
|
|
|
|
|
y
|
|
|
|
|
|
|
|
|
|
/[\xFF]/
|
|
|
|
|
>\xff<
|
|
|
|
|
|
|
|
|
|
/[\xff]/utf
|
|
|
|
|
>\x{ff}<
|
|
|
|
|
|
|
|
|
|
/[^\xFF]/
|
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/[^\xff]/utf
|
|
|
|
|
XYZ
|
|
|
|
|
\x{123}
|
|
|
|
|
|
|
|
|
|
/^[ac]*b/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
xb
|
|
|
|
|
|
|
|
|
|
/^[ac\x{100}]*b/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
xb
|
|
|
|
|
|
|
|
|
|
/^[^x]*b/i,utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
xb
|
|
|
|
|
|
|
|
|
|
/^[^x]*b/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
xb
|
|
|
|
|
|
|
|
|
|
/^\d*b/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
xb
|
|
|
|
|
|
|
|
|
|
/(|a)/g,utf
|
|
|
|
|
catac
|
|
|
|
|
a\x{256}a
|
|
|
|
|
|
|
|
|
|
/^\x{85}$/i,utf
|
|
|
|
|
\x{85}
|
|
|
|
|
|
|
|
|
|
/^ሴ/utf
|
|
|
|
|
ሴ
|
|
|
|
|
|
|
|
|
|
/^\ሴ/utf
|
|
|
|
|
ሴ
|
|
|
|
|
|
2020-09-13 17:56:32 +02:00
|
|
|
|
/(?s)(.{1,5})/utf
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abcdefg
|
|
|
|
|
ab
|
|
|
|
|
|
|
|
|
|
/a*\x{100}*\w/utf
|
|
|
|
|
a
|
|
|
|
|
|
|
|
|
|
/\S\S/g,utf
|
|
|
|
|
A\x{a3}BC
|
|
|
|
|
|
|
|
|
|
/\S{2}/g,utf
|
|
|
|
|
A\x{a3}BC
|
|
|
|
|
|
|
|
|
|
/\W\W/g,utf
|
|
|
|
|
+\x{a3}==
|
|
|
|
|
|
|
|
|
|
/\W{2}/g,utf
|
|
|
|
|
+\x{a3}==
|
|
|
|
|
|
|
|
|
|
/\S/g,utf
|
|
|
|
|
\x{442}\x{435}\x{441}\x{442}
|
|
|
|
|
|
|
|
|
|
/[\S]/g,utf
|
|
|
|
|
\x{442}\x{435}\x{441}\x{442}
|
|
|
|
|
|
|
|
|
|
/\D/g,utf
|
|
|
|
|
\x{442}\x{435}\x{441}\x{442}
|
|
|
|
|
|
|
|
|
|
/[\D]/g,utf
|
|
|
|
|
\x{442}\x{435}\x{441}\x{442}
|
|
|
|
|
|
|
|
|
|
/\W/g,utf
|
|
|
|
|
\x{2442}\x{2435}\x{2441}\x{2442}
|
|
|
|
|
|
|
|
|
|
/[\W]/g,utf
|
|
|
|
|
\x{2442}\x{2435}\x{2441}\x{2442}
|
|
|
|
|
|
|
|
|
|
/[\S\s]*/utf
|
|
|
|
|
abc\n\r\x{442}\x{435}\x{441}\x{442}xyz
|
|
|
|
|
|
|
|
|
|
/[\x{41f}\S]/g,utf
|
|
|
|
|
\x{442}\x{435}\x{441}\x{442}
|
|
|
|
|
|
|
|
|
|
/.[^\S]./g,utf
|
|
|
|
|
abc def\x{442}\x{443}xyz\npqr
|
|
|
|
|
|
|
|
|
|
/.[^\S\n]./g,utf
|
|
|
|
|
abc def\x{442}\x{443}xyz\npqr
|
|
|
|
|
|
|
|
|
|
/[[:^alnum:]]/g,utf
|
|
|
|
|
+\x{2442}
|
|
|
|
|
|
|
|
|
|
/[[:^alpha:]]/g,utf
|
|
|
|
|
+\x{2442}
|
|
|
|
|
|
|
|
|
|
/[[:^ascii:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^blank:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^cntrl:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^digit:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^graph:]]/g,utf
|
|
|
|
|
\x19\x{e01ff}
|
|
|
|
|
|
|
|
|
|
/[[:^lower:]]/g,utf
|
|
|
|
|
A\x{422}
|
|
|
|
|
|
|
|
|
|
/[[:^print:]]/g,utf
|
|
|
|
|
\x{19}\x{e01ff}
|
|
|
|
|
|
|
|
|
|
/[[:^punct:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^space:]]/g,utf
|
|
|
|
|
A\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^upper:]]/g,utf
|
|
|
|
|
a\x{442}
|
|
|
|
|
|
|
|
|
|
/[[:^word:]]/g,utf
|
|
|
|
|
+\x{2442}
|
|
|
|
|
|
|
|
|
|
/[[:^xdigit:]]/g,utf
|
|
|
|
|
M\x{442}
|
|
|
|
|
|
2017-07-29 17:54:04 +02:00
|
|
|
|
/[^ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉƊƋƎƏƐƑƓƔƖƗƘƜƝƟƠƢƤƦƧƩƬƮƯƱƲƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶǷǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁΆΈΉΊΌΎΏΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϒϓϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸԀԂԄԆԈԊԌԎԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈἉἊἋἌἍἎἏἘἙἚἛἜἝἨἩἪἫἬἭἮἯἸἹἺἻἼἽἾἿὈὉὊὋὌὍὙὛὝὟὨὩὪὫὬὭὮὯᾸᾹᾺΆῈΈῊΉῘῙῚΊῨῩῪΎῬῸΌῺΏabcdefghijklmnopqrstuvwxyzªµºßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſƀƃƅƈƌƍƒƕƙƚƛƞơƣƥƨƪƫƭưƴƶƹƺƽƾƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳȴȵȶȷȸȹȼȿɀɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯΐάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϐϑϕϖϗϙϛϝϟϡϣϥϧϩϫϭϯϰϱϲϳϵϸϻϼабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹԁԃԅԇԉԋԍԏաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտրցւփքօֆևᴀᴁᴂᴃᴄᴅᴆᴇᴈᴉᴊᴋᴌᴍᴎᴏᴐᴑᴒᴓᴔᴕᴖᴗᴘᴙᴚᴛᴜᴝᴞᴟᴠᴡᴢᴣᴤᴥᴦᴧᴨᴩᴪᴫᵢᵣᵤᵥᵦᵧᵨᵩᵪᵫᵬᵭᵮᵯᵰᵱᵲᵳᵴᵵᵶᵷᵹᵺᵻᵼᵽᵾᵿᶀᶁᶂᶃᶄᶅᶆᶇᶈᶉᶊᶋᶌᶍᶎᶏᶐᶑᶒᶓᶔᶕᶖᶗᶘᶙᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕẖẗẘẙẚẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀἁἂἃἄἅἆἇἐἑἒἓἔἕἠἡἢἣἤἥἦἧἰἱἲἳἴἵἶἷὀὁὂὃὄὅὐὑὒὓὔὕὖὗὠὡὢὣὤὥὦὧὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾐᾑᾒᾓᾔᾕᾖᾗᾠᾡᾢᾣᾤᾥᾦᾧᾰᾱᾲᾳᾴᾶᾷιῂῃῄῆῇῐῑῒΐῖῗῠῡῢΰῤῥῦῧῲῳῴῶῷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥfffiflffifflſtstﬓﬔﬕﬖﬗ\d_^]/utf
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[^d]*?$/
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/^[^d]*?$/utf
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/^[^d]*?$/i
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/^[^d]*?$/i,utf
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/utf
|
|
|
|
|
|
|
|
|
|
/^[a\x{c0}]b/utf
|
|
|
|
|
\x{c0}b
|
|
|
|
|
|
|
|
|
|
/^([a\x{c0}]*?)aa/utf
|
|
|
|
|
a\x{c0}aaaa/
|
|
|
|
|
|
|
|
|
|
/^([a\x{c0}]*?)aa/utf
|
|
|
|
|
a\x{c0}aaaa/
|
|
|
|
|
a\x{c0}a\x{c0}aaa/
|
|
|
|
|
|
|
|
|
|
/^([a\x{c0}]*)aa/utf
|
|
|
|
|
a\x{c0}aaaa/
|
|
|
|
|
a\x{c0}a\x{c0}aaa/
|
|
|
|
|
|
|
|
|
|
/^([a\x{c0}]*)a\x{c0}/utf
|
|
|
|
|
a\x{c0}aaaa/
|
|
|
|
|
a\x{c0}a\x{c0}aaa/
|
|
|
|
|
|
|
|
|
|
/A*/g,utf
|
|
|
|
|
AAB\x{123}BAA
|
|
|
|
|
|
|
|
|
|
/(abc)\1/i,utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/(abc)\1/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/a(*:a\x{1234}b)/utf,mark
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
/a(*:a£b)/utf,mark
|
|
|
|
|
abc
|
|
|
|
|
|
|
|
|
|
# Noncharacters
|
|
|
|
|
|
|
|
|
|
/./utf
|
|
|
|
|
\x{fffe}
|
|
|
|
|
\x{ffff}
|
|
|
|
|
\x{1fffe}
|
|
|
|
|
\x{1ffff}
|
|
|
|
|
\x{2fffe}
|
|
|
|
|
\x{2ffff}
|
|
|
|
|
\x{3fffe}
|
|
|
|
|
\x{3ffff}
|
|
|
|
|
\x{4fffe}
|
|
|
|
|
\x{4ffff}
|
|
|
|
|
\x{5fffe}
|
|
|
|
|
\x{5ffff}
|
|
|
|
|
\x{6fffe}
|
|
|
|
|
\x{6ffff}
|
|
|
|
|
\x{7fffe}
|
|
|
|
|
\x{7ffff}
|
|
|
|
|
\x{8fffe}
|
|
|
|
|
\x{8ffff}
|
|
|
|
|
\x{9fffe}
|
|
|
|
|
\x{9ffff}
|
|
|
|
|
\x{afffe}
|
|
|
|
|
\x{affff}
|
|
|
|
|
\x{bfffe}
|
|
|
|
|
\x{bffff}
|
|
|
|
|
\x{cfffe}
|
|
|
|
|
\x{cffff}
|
|
|
|
|
\x{dfffe}
|
|
|
|
|
\x{dffff}
|
|
|
|
|
\x{efffe}
|
|
|
|
|
\x{effff}
|
|
|
|
|
\x{ffffe}
|
|
|
|
|
\x{fffff}
|
|
|
|
|
\x{10fffe}
|
|
|
|
|
\x{10ffff}
|
|
|
|
|
\x{fdd0}
|
|
|
|
|
\x{fdd1}
|
|
|
|
|
\x{fdd2}
|
|
|
|
|
\x{fdd3}
|
|
|
|
|
\x{fdd4}
|
|
|
|
|
\x{fdd5}
|
|
|
|
|
\x{fdd6}
|
|
|
|
|
\x{fdd7}
|
|
|
|
|
\x{fdd8}
|
|
|
|
|
\x{fdd9}
|
|
|
|
|
\x{fdda}
|
|
|
|
|
\x{fddb}
|
|
|
|
|
\x{fddc}
|
|
|
|
|
\x{fddd}
|
|
|
|
|
\x{fdde}
|
|
|
|
|
\x{fddf}
|
|
|
|
|
\x{fde0}
|
|
|
|
|
\x{fde1}
|
|
|
|
|
\x{fde2}
|
|
|
|
|
\x{fde3}
|
|
|
|
|
\x{fde4}
|
|
|
|
|
\x{fde5}
|
|
|
|
|
\x{fde6}
|
|
|
|
|
\x{fde7}
|
|
|
|
|
\x{fde8}
|
|
|
|
|
\x{fde9}
|
|
|
|
|
\x{fdea}
|
|
|
|
|
\x{fdeb}
|
|
|
|
|
\x{fdec}
|
|
|
|
|
\x{fded}
|
|
|
|
|
\x{fdee}
|
|
|
|
|
\x{fdef}
|
|
|
|
|
|
|
|
|
|
/^\d*\w{4}/utf
|
|
|
|
|
1234
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
123
|
|
|
|
|
|
|
|
|
|
/^[^b]*\w{4}/utf
|
|
|
|
|
aaaa
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
aaa
|
|
|
|
|
|
|
|
|
|
/^[^b]*\w{4}/i,utf
|
|
|
|
|
aaaa
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
aaa
|
|
|
|
|
|
|
|
|
|
/^\x{100}*.{4}/utf
|
|
|
|
|
\x{100}\x{100}\x{100}\x{100}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/^\x{100}*.{4}/i,utf
|
|
|
|
|
\x{100}\x{100}\x{100}\x{100}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{100}\x{100}\x{100}
|
|
|
|
|
|
|
|
|
|
/^a+[a\x{200}]/utf
|
|
|
|
|
aa
|
|
|
|
|
|
|
|
|
|
/^.\B.\B./utf
|
|
|
|
|
\x{10123}\x{10124}\x{10125}
|
|
|
|
|
|
|
|
|
|
/^#[^\x{ffff}]#[^\x{ffff}]#[^\x{ffff}]#/utf
|
|
|
|
|
#\x{10000}#\x{100}#\x{10ffff}#
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
|
|
|
|
# Unicode property support tests
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\pC\pL\pM\pN\pP\pS\pZ</utf
|
|
|
|
|
\x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\np\x{300}9!\$ <
|
|
|
|
|
\= Expect no match
|
|
|
|
|
ap\x{300}9!\$ <
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PC/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x7f
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PL/utf
|
|
|
|
|
9
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{c0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PM/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{30f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PN/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{660}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PP/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{66c}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PS/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{f01}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\PZ/utf
|
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{1680}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Cc}/utf
|
|
|
|
|
\x{017}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{09f}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{0600}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Cf}/utf
|
|
|
|
|
\x{601}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{09f}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Cn}/utf
|
|
|
|
|
\x{e0000}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{09f}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Co}/utf
|
|
|
|
|
\x{f8ff}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{09f}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Ll}/utf
|
|
|
|
|
a
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
Z
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{e000}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Lm}/utf
|
|
|
|
|
\x{2b0}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Lo}/utf
|
|
|
|
|
\x{1bb}
|
|
|
|
|
\x{3400}
|
|
|
|
|
\x{3401}
|
|
|
|
|
\x{4d00}
|
|
|
|
|
\x{4db4}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{4db5}
|
|
|
|
|
\x{4db6}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{2b0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Lt}/utf
|
|
|
|
|
\x{1c5}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{2b0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Lu}/utf
|
|
|
|
|
A
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{2b0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Mc}/utf
|
|
|
|
|
\x{903}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{300}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Me}/utf
|
|
|
|
|
\x{488}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{903}
|
|
|
|
|
\x{300}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Mn}/utf
|
|
|
|
|
\x{300}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{903}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Nd}+/utf
|
|
|
|
|
0123456789\x{660}\x{661}\x{662}\x{663}\x{664}\x{665}\x{666}\x{667}\x{668}\x{669}\x{66a}
|
|
|
|
|
\x{6f0}\x{6f1}\x{6f2}\x{6f3}\x{6f4}\x{6f5}\x{6f6}\x{6f7}\x{6f8}\x{6f9}\x{6fa}
|
|
|
|
|
\x{966}\x{967}\x{968}\x{969}\x{96a}\x{96b}\x{96c}\x{96d}\x{96e}\x{96f}\x{970}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Nl}/utf
|
|
|
|
|
\x{16ee}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{966}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{No}/utf
|
|
|
|
|
\x{b2}
|
|
|
|
|
\x{b3}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{16ee}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Pc}/utf
|
|
|
|
|
\x5f
|
|
|
|
|
\x{203f}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
-
|
|
|
|
|
\x{58a}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Pd}/utf
|
|
|
|
|
-
|
|
|
|
|
\x{58a}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{203f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Pe}/utf
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
\x{f3b}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{203f}
|
|
|
|
|
(
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
\x{f3c}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Pf}/utf
|
|
|
|
|
\x{bb}
|
|
|
|
|
\x{2019}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{203f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Pi}/utf
|
|
|
|
|
\x{ab}
|
|
|
|
|
\x{2018}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{203f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Po}/utf
|
|
|
|
|
!
|
|
|
|
|
\x{37e}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{203f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Ps}/utf
|
|
|
|
|
(
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
\x{f3c}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
\x{f3b}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Sk}/utf
|
|
|
|
|
\x{2c2}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{9f2}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Sm}+/utf
|
|
|
|
|
+<|~\x{ac}\x{2044}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{9f2}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{So}/utf
|
|
|
|
|
\x{a6}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{482}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{9f2}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Zl}/utf
|
|
|
|
|
\x{2028}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{2029}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Zp}/utf
|
|
|
|
|
\x{2029}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
X
|
|
|
|
|
\x{2028}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}+(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}+?(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}{2,}(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}{2,}?(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}*(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}*?(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}{2}(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}{2,3}(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}{2,3}?(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}?(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}??(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}*+(..)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}*+(...)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Nd}*+(....)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{660}\x{661}\x{662}ABC
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/(?<=A\p{Nd})XYZ/utf
|
|
|
|
|
A2XYZ
|
|
|
|
|
123A5XYZPQR
|
|
|
|
|
ABA\x{660}XYZpqr
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
XYZ
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/(?<!\pL)XYZ/utf
|
|
|
|
|
1XYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AB=XYZ..
|
|
|
|
|
XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
WXYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\P{Nd}]+/utf
|
|
|
|
|
abcd
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
/\D+/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
11111111111111111111111111111111111111111111111111111111111111111111111
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\P{Nd}+/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
11111111111111111111111111111111111111111111111111111111111111111111111
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\D]+/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
11111111111111111111111111111111111111111111111111111111111111111111111
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\P{Nd}]+/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
11111111111111111111111111111111111111111111111111111111111111111111111
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\D\P{Nd}]+/utf
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
11111111111111111111111111111111111111111111111111111111111111111111111
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\pL/utf
|
|
|
|
|
a
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\pL/i,utf
|
|
|
|
|
a
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{Lu}/utf
|
|
|
|
|
A
|
|
|
|
|
aZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abc
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\p{Ll}/utf
|
|
|
|
|
a
|
|
|
|
|
Az
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
ABC
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/utf
|
|
|
|
|
A\x{391}\x{10427}\x{ff3a}\x{1fb0}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a\x{391}\x{10427}\x{ff3a}\x{1fb0}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{10427}\x{ff5a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{10427}\x{ff3a}\x{1fb8}
|
|
|
|
|
|
|
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/i,utf
|
|
|
|
|
A\x{391}\x{10427}\x{ff3a}\x{1fb0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a\x{391}\x{10427}\x{ff3a}\x{1fb0}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
A\x{3b1}\x{10427}\x{ff3a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{1044F}\x{ff3a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{10427}\x{ff5a}\x{1fb0}
|
|
|
|
|
A\x{391}\x{10427}\x{ff3a}\x{1fb8}
|
|
|
|
|
|
|
|
|
|
/\x{391}+/i,utf
|
|
|
|
|
\x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
|
|
|
|
|
|
|
|
|
|
/\x{391}{3,5}(.)/i,utf
|
|
|
|
|
\x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
|
|
|
|
|
|
|
|
|
|
/\x{391}{3,5}?(.)/i,utf
|
|
|
|
|
\x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}X
|
|
|
|
|
|
|
|
|
|
/[\x{391}\x{ff3a}]/i,utf
|
|
|
|
|
\x{391}
|
|
|
|
|
\x{ff3a}
|
|
|
|
|
\x{3b1}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{ff5a}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^(\X*)C/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^(\X*?)C/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^(\X*)(.)/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^(\X*?)(.)/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}\x{302}BCA\x{300}\x{301}C
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\X(.)/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
A\x{300}\x{301}\x{302}
|
|
|
|
|
|
|
|
|
|
/^\X{2,3}(.)/utf
|
|
|
|
|
A\x{300}\x{301}B\x{300}X
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\X{2,3}?(.)/utf
|
|
|
|
|
A\x{300}\x{301}B\x{300}X
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}X
|
|
|
|
|
A\x{300}\x{301}B\x{300}C\x{300}\x{301}DA\x{300}X
|
|
|
|
|
|
|
|
|
|
/^\X/utf
|
|
|
|
|
A
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A\x{300}BC
|
|
|
|
|
A\x{300}\x{301}\x{302}BC
|
|
|
|
|
\x{300}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Han}+/utf
|
|
|
|
|
\x{2e81}\x{3007}\x{2f804}\x{31a0}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{2e7f}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\P{Katakana}+/utf
|
|
|
|
|
\x{3105}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{30ff}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\p{Arabic}]/utf
|
|
|
|
|
\x{06e9}
|
|
|
|
|
\x{060b}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
X\x{06e9}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\P{Yi}]/utf
|
|
|
|
|
\x{2f800}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{a014}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{a4c6}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Any}X/utf
|
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
X
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\P{Any}X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AX
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Any}?X/utf
|
|
|
|
|
XYZ
|
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
ABXYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\P{Any}?X/utf
|
|
|
|
|
XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
ABXYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{Any}+X/utf
|
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/^\P{Any}+X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/^\p{Any}*X/utf
|
|
|
|
|
XYZ
|
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
|
|
|
|
|
/^\P{Any}*X/utf
|
|
|
|
|
XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
|
|
|
|
|
/^[\p{Any}]X/utf
|
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
X
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^[\P{Any}]X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AX
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^[\p{Any}]?X/utf
|
|
|
|
|
XYZ
|
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
ABXYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\P{Any}]?X/utf
|
|
|
|
|
XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
ABXYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\p{Any}]+X/utf
|
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/^[\P{Any}]+X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
XYZ
|
|
|
|
|
|
|
|
|
|
/^[\p{Any}]*X/utf
|
|
|
|
|
XYZ
|
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
|
|
|
|
|
/^[\P{Any}]*X/utf
|
|
|
|
|
XYZ
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
AXYZ
|
|
|
|
|
\x{1234}XYZ
|
|
|
|
|
A\x{1234}XYZ
|
|
|
|
|
|
|
|
|
|
/^\p{Any}{3,5}?/utf
|
|
|
|
|
abcdefgh
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}\n\r\x{3456}xyz
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{Any}{3,5}/utf
|
|
|
|
|
abcdefgh
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}\n\r\x{3456}xyz
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\P{Any}{3,5}?/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
abcdefgh
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1234}\n\r\x{3456}xyz
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{L&}X/utf
|
|
|
|
|
AXY
|
|
|
|
|
aXY
|
|
|
|
|
\x{1c5}XY
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\p{L&}]X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
AXY
|
|
|
|
|
aXY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{1c5}XY
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{L&}+X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
AXY
|
|
|
|
|
aXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AbcdeXyz
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{1c5}AbXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcDEXypqreXlmn
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\p{L&}]+X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
AXY
|
|
|
|
|
aXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AbcdeXyz
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{1c5}AbXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcDEXypqreXlmn
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{L&}+?X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
AXY
|
|
|
|
|
aXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AbcdeXyz
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{1c5}AbXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcDEXypqreXlmn
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\p{L&}]+?X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
AXY
|
|
|
|
|
aXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AbcdeXyz
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\x{1c5}AbXY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcDEXypqreXlmn
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
!XY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\P{L&}X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
!XY
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1c5}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AXY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[\P{L&}]X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
!XY
|
|
|
|
|
\x{1bb}XY
|
|
|
|
|
\x{2b0}XY
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1c5}XY
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AXY
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^(\p{Z}[^\p{C}\p{Z}]+)*$/
|
|
|
|
|
\xa0!
|
|
|
|
|
|
|
|
|
|
/^[\pL](abc)(?1)/
|
2021-12-21 16:39:46 +01:00
|
|
|
|
AabcabcYZ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/([\pL]=(abc))*X/
|
|
|
|
|
L=abcX
|
|
|
|
|
|
|
|
|
|
/^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/utf
|
|
|
|
|
\x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
|
|
|
|
|
|
|
|
|
|
# Check property support in non-UTF mode
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\p{L}{4}/
|
|
|
|
|
123abcdefg
|
|
|
|
|
123abc\xc4\xc5zz
|
|
|
|
|
|
|
|
|
|
/\X{1,3}\d/
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x8aBCD
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/\X?\d/
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x8aBCD
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\P{L}?\d/
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x8aBCD
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[\PPP\x8a]{1,}\x80/
|
|
|
|
|
A\x80
|
|
|
|
|
|
|
|
|
|
/^[\p{Arabic}]/utf
|
|
|
|
|
\x{604}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{60e}
|
|
|
|
|
\x{656}
|
|
|
|
|
\x{657}
|
|
|
|
|
\x{658}
|
|
|
|
|
\x{659}
|
|
|
|
|
\x{65a}
|
|
|
|
|
\x{65b}
|
|
|
|
|
\x{65c}
|
|
|
|
|
\x{65d}
|
|
|
|
|
\x{65e}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{65f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{66a}
|
|
|
|
|
\x{6e9}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{6ef}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{6fa}
|
2018-07-07 18:10:29 +02:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Cyrillic}/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1d2b}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Common}/utf
|
2018-07-07 18:10:29 +02:00
|
|
|
|
\x{2116}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1D183}
|
|
|
|
|
|
|
|
|
|
#subject no_jit
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{Inherited}/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{200c}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{64a}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{656}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\p{Shavian}/utf
|
|
|
|
|
\x{10450}
|
|
|
|
|
\x{1047f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Deseret}/utf
|
|
|
|
|
\x{10400}
|
|
|
|
|
\x{1044f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\p{Osmanya}/utf
|
|
|
|
|
\x{10480}
|
|
|
|
|
\x{1049d}
|
|
|
|
|
\x{104a0}
|
|
|
|
|
\x{104a9}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{1049e}
|
|
|
|
|
\x{1049f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{104aa}
|
|
|
|
|
|
|
|
|
|
/\p{katakana}/utf
|
|
|
|
|
\x{30a1}
|
|
|
|
|
\x{3001}
|
|
|
|
|
|
|
|
|
|
/\p{scx:katakana}/utf
|
|
|
|
|
\x{30a1}
|
|
|
|
|
\x{3001}
|
|
|
|
|
|
|
|
|
|
/\p{script extensions:katakana}/utf
|
|
|
|
|
\x{30a1}
|
|
|
|
|
\x{3001}
|
|
|
|
|
|
|
|
|
|
/\p{sc:katakana}/utf
|
|
|
|
|
\x{30a1}
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{3001}
|
|
|
|
|
|
|
|
|
|
/\p{script:katakana}/utf
|
|
|
|
|
\x{30a1}
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{3001}
|
|
|
|
|
|
|
|
|
|
/\p{sc:katakana}{3,}/utf
|
|
|
|
|
\x{30a1}\x{30fa}\x{32d0}\x{1b122}\x{ff66}\x{3001}ABC
|
|
|
|
|
|
|
|
|
|
/\p{sc:katakana}{3,}?/utf
|
|
|
|
|
\x{30a1}\x{30fa}\x{32d0}\x{1b122}\x{ff66}\x{3001}ABC
|
|
|
|
|
|
|
|
|
|
#subject -no_jit
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\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
|
|
|
|
|
\x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}====
|
|
|
|
|
|
|
|
|
|
/\x{a77d}\x{1d79}/i,utf
|
|
|
|
|
\x{a77d}\x{1d79}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1d79}\x{a77d}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{a77d}\x{1d79}/utf
|
|
|
|
|
\x{a77d}\x{1d79}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1d79}\x{a77d}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/(A)\1/i,utf
|
|
|
|
|
AA
|
|
|
|
|
Aa
|
|
|
|
|
aa
|
|
|
|
|
aA
|
|
|
|
|
|
|
|
|
|
/(\x{10a})\1/i,utf
|
|
|
|
|
\x{10a}\x{10a}
|
|
|
|
|
\x{10a}\x{10b}
|
|
|
|
|
\x{10b}\x{10b}
|
|
|
|
|
\x{10b}\x{10a}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
# The next two tests are for property support in non-UTF mode
|
|
|
|
|
|
|
|
|
|
/(?:\p{Lu}|\x20)+/
|
|
|
|
|
\x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
|
|
|
|
|
|
|
|
|
|
/[\p{Lu}\x20]+/
|
|
|
|
|
\x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
|
|
|
|
|
|
|
|
|
|
/\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
|
|
|
|
|
\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}
|
|
|
|
|
|
|
|
|
|
/^\w+/utf,ucp
|
|
|
|
|
Az_\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
|
|
|
|
|
|
|
|
|
|
/^[[:xdigit:]]*/utf,ucp
|
|
|
|
|
1a\x{660}\x{bef}\x{16ee}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\d+/utf,ucp
|
|
|
|
|
1\x{660}\x{bef}\x{16ee}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^[[:digit:]]+/utf,ucp
|
|
|
|
|
1\x{660}\x{bef}\x{16ee}
|
|
|
|
|
|
|
|
|
|
/^>\s+/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^>\pZ+/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^>[[:space:]]*/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^>[[:blank:]]*/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
>\x{20}\x{a0}\x{1680}\x{2000}\x{202f}\x{9}\x{b}\x{2028}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:alpha:]]*/utf,ucp
|
|
|
|
|
Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}
|
|
|
|
|
|
|
|
|
|
/^[[:alnum:]]*/utf,ucp
|
|
|
|
|
Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee}
|
|
|
|
|
|
|
|
|
|
/^[[:cntrl:]]*/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{0}\x{09}\x{1f}\x{7f}\x{9f}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:graph:]]*/utf,ucp
|
|
|
|
|
A\x{a1}\x{a0}
|
|
|
|
|
|
|
|
|
|
/^[[:print:]]*/utf,ucp
|
|
|
|
|
A z\x{a0}\x{a1}
|
|
|
|
|
|
|
|
|
|
/^[[:punct:]]*/utf,ucp
|
|
|
|
|
.+\x{a1}\x{a0}
|
|
|
|
|
|
|
|
|
|
/\p{Zs}*?\R/
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
a\xFCb
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\p{Zs}*\R/
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
|
|
|
|
a\xFCb
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/ⱥ/i,utf
|
|
|
|
|
ⱥ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
Ⱥx
|
|
|
|
|
Ⱥ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[ⱥ]/i,utf
|
|
|
|
|
ⱥ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
Ⱥx
|
|
|
|
|
Ⱥ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/Ⱥ/i,utf
|
|
|
|
|
Ⱥ
|
|
|
|
|
ⱥ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
|
|
|
|
# These are tests for extended grapheme clusters
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\X/utf,aftertext
|
|
|
|
|
G\x{34e}\x{34e}X
|
|
|
|
|
\x{34e}\x{34e}X
|
|
|
|
|
\x04X
|
|
|
|
|
\x{1100}X
|
|
|
|
|
\x{1100}\x{34e}X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1b04}\x{1b04}X
|
2014-07-25 18:35:51 +02:00
|
|
|
|
*These match up to the roman letters
|
|
|
|
|
\x{1111}\x{1111}L,L
|
|
|
|
|
\x{1111}\x{1111}\x{1169}L,L,V
|
|
|
|
|
\x{1111}\x{ae4c}L, LV
|
|
|
|
|
\x{1111}\x{ad89}L, LVT
|
|
|
|
|
\x{1111}\x{ae4c}\x{1169}L, LV, V
|
|
|
|
|
\x{1111}\x{ae4c}\x{1169}\x{1169}L, LV, V, V
|
|
|
|
|
\x{1111}\x{ae4c}\x{1169}\x{11fe}L, LV, V, T
|
|
|
|
|
\x{1111}\x{ad89}\x{11fe}L, LVT, T
|
|
|
|
|
\x{1111}\x{ad89}\x{11fe}\x{11fe}L, LVT, T, T
|
|
|
|
|
\x{ad89}\x{11fe}\x{11fe}LVT, T, T
|
|
|
|
|
*These match just the first codepoint (invalid sequence)
|
|
|
|
|
\x{1111}\x{11fe}L, T
|
|
|
|
|
\x{ae4c}\x{1111}LV, L
|
|
|
|
|
\x{ae4c}\x{ae4c}LV, LV
|
|
|
|
|
\x{ae4c}\x{ad89}LV, LVT
|
|
|
|
|
\x{1169}\x{1111}V, L
|
|
|
|
|
\x{1169}\x{ae4c}V, LV
|
|
|
|
|
\x{1169}\x{ad89}V, LVT
|
|
|
|
|
\x{ad89}\x{1111}LVT, L
|
|
|
|
|
\x{ad89}\x{1169}LVT, V
|
|
|
|
|
\x{ad89}\x{ae4c}LVT, LV
|
|
|
|
|
\x{ad89}\x{ad89}LVT, LVT
|
|
|
|
|
\x{11fe}\x{1111}T, L
|
|
|
|
|
\x{11fe}\x{1169}T, V
|
|
|
|
|
\x{11fe}\x{ae4c}T, LV
|
|
|
|
|
\x{11fe}\x{ad89}T, LVT
|
|
|
|
|
*Test extend and spacing mark
|
|
|
|
|
\x{1111}\x{ae4c}\x{0711}L, LV, extend
|
|
|
|
|
\x{1111}\x{ae4c}\x{1b04}L, LV, spacing mark
|
|
|
|
|
\x{1111}\x{ae4c}\x{1b04}\x{0711}\x{1b04}L, LV, spacing mark, extend, spacing mark
|
|
|
|
|
*Test CR, LF, and control
|
|
|
|
|
\x0d\x{0711}CR, extend
|
|
|
|
|
\x0d\x{1b04}CR, spacingmark
|
|
|
|
|
\x0a\x{0711}LF, extend
|
|
|
|
|
\x0a\x{1b04}LF, spacingmark
|
|
|
|
|
\x0b\x{0711}Control, extend
|
|
|
|
|
\x09\x{1b04}Control, spacingmark
|
|
|
|
|
*There are no Prepend characters, so we can't test Prepend, CR
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^(?>\X{2})X/utf,aftertext
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/^\X{2,4}X/utf,aftertext
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
|
|
|
|
|
/^\X{2,4}?X/utf,aftertext
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}\x{1111}\x{ae4c}X
|
|
|
|
|
|
|
|
|
|
/\X*Z/utf,no_start_optimize
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
A\x{300}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\X*(.)/utf,no_start_optimize
|
2015-09-16 18:49:48 +02:00
|
|
|
|
A\x{1111}\x{ae4c}\x{1169}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
# --------------------------------------------
|
|
|
|
|
|
|
|
|
|
/\x{1e9e}+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
|
|
|
|
|
|
|
|
|
/[z\x{1e9e}]+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
|
|
|
|
|
|
|
|
|
/\x{00df}+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
|
|
|
|
|
|
|
|
|
/[z\x{00df}]+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
|
|
|
|
|
|
|
|
|
/\x{1f88}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1f88}\x{1f80}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{1f88}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1f88}\x{1f80}
|
|
|
|
|
|
2017-04-16 15:03:30 +02:00
|
|
|
|
# Check a reference with more than one other case
|
|
|
|
|
|
2021-12-21 16:39:46 +01:00
|
|
|
|
/^(\x{00b5})\1{2}$/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
# Characters with more than one other case; test in classes
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{00b5}]+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
/[z\x{039c}]+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
/[z\x{03bc}]+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
/[z\x{00c5}]+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
/[z\x{00e5}]+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
/[z\x{212b}]+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c4}]+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c5}]+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c6}]+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c7}]+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c8}]+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
/[z\x{01c9}]+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
/[z\x{01ca}]+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
/[z\x{01cb}]+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
/[z\x{01cc}]+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
/[z\x{01f1}]+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
/[z\x{01f2}]+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
/[z\x{01f3}]+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
/[z\x{0345}]+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/[z\x{0399}]+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/[z\x{03b9}]+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/[z\x{1fbe}]+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/[z\x{0392}]+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
|
|
|
|
|
|
|
|
|
/[z\x{03b2}]+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
|
|
|
|
|
|
|
|
|
/[z\x{03d0}]+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
|
|
|
|
|
|
|
|
|
/[z\x{0395}]+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
/[z\x{03b5}]+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
/[z\x{03f5}]+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
/[z\x{0398}]+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/[z\x{03b8}]+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/[z\x{03d1}]+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/[z\x{03f4}]+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/[z\x{039a}]+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
|
|
|
|
|
|
|
|
|
/[z\x{03ba}]+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
|
|
|
|
|
|
|
|
|
/[z\x{03f0}]+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
|
|
|
|
|
|
|
|
|
/[z\x{03a0}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03c0}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03d6}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03a1}]+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
/[z\x{03c1}]+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
/[z\x{03f1}]+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
/[z\x{03a3}]+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
|
|
|
|
|
|
|
|
|
/[z\x{03c2}]+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
|
|
|
|
|
|
|
|
|
/[z\x{03c3}]+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
|
|
|
|
|
|
|
|
|
/[z\x{03a6}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03c6}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03d5}]+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{03c9}]+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
|
|
|
|
|
|
|
|
|
/[z\x{03a9}]+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
|
|
|
|
|
|
|
|
|
/[z\x{2126}]+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
|
|
|
|
|
|
|
|
|
/[z\x{1e60}]+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
|
|
|
|
|
|
|
|
|
/[z\x{1e61}]+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
|
|
|
|
|
|
|
|
|
/[z\x{1e9b}]+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
|
|
|
|
|
2021-12-21 16:39:46 +01:00
|
|
|
|
# Perl 5.12.4 gets these wrong, but 5.15.3 is OK
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[z\x{004b}]+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
/[z\x{006b}]+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
/[z\x{212a}]+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
/[z\x{0053}]+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
|
|
|
|
|
|
|
|
|
/[z\x{0073}]+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
|
|
|
|
|
|
|
|
|
/[z\x{017f}]+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
|
|
|
|
# --------------------------------------
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/(ΣΆΜΟΣ) \1/i,utf
|
|
|
|
|
ΣΆΜΟΣ ΣΆΜΟΣ
|
|
|
|
|
ΣΆΜΟΣ σάμος
|
|
|
|
|
σάμος σάμος
|
|
|
|
|
σάμος σάμοσ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
σάμος ΣΆΜΟΣ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/(σάμος) \1/i,utf
|
|
|
|
|
ΣΆΜΟΣ ΣΆΜΟΣ
|
|
|
|
|
ΣΆΜΟΣ σάμος
|
|
|
|
|
σάμος σάμος
|
|
|
|
|
σάμος σάμοσ
|
2021-12-21 16:39:46 +01:00
|
|
|
|
σάμος ΣΆΜΟΣ
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/(ΣΆΜΟΣ) \1*/i,utf
|
|
|
|
|
ΣΆΜΟΣ\x20
|
|
|
|
|
ΣΆΜΟΣ ΣΆΜΟΣσάμοςσάμος
|
|
|
|
|
|
2021-12-21 16:39:46 +01:00
|
|
|
|
# Perl matches these
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{00b5}+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
/\x{039c}+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
/\x{03bc}+/i,utf
|
|
|
|
|
\x{00b5}\x{039c}\x{03bc}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{00c5}+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
/\x{00e5}+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
/\x{212b}+/i,utf
|
|
|
|
|
\x{00c5}\x{00e5}\x{212b}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{01c4}+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
/\x{01c5}+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
/\x{01c6}+/i,utf
|
|
|
|
|
\x{01c4}\x{01c5}\x{01c6}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{01c7}+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
/\x{01c8}+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
/\x{01c9}+/i,utf
|
|
|
|
|
\x{01c7}\x{01c8}\x{01c9}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{01ca}+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
/\x{01cb}+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
/\x{01cc}+/i,utf
|
|
|
|
|
\x{01ca}\x{01cb}\x{01cc}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{01f1}+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
/\x{01f2}+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
/\x{01f3}+/i,utf
|
|
|
|
|
\x{01f1}\x{01f2}\x{01f3}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{0345}+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/\x{0399}+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/\x{03b9}+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
/\x{1fbe}+/i,utf
|
|
|
|
|
\x{0345}\x{0399}\x{03b9}\x{1fbe}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{0392}+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
|
|
|
|
|
|
|
|
|
/\x{03b2}+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
|
|
|
|
|
|
|
|
|
/\x{03d0}+/i,utf
|
|
|
|
|
\x{0392}\x{03b2}\x{03d0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{0395}+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
/\x{03b5}+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
/\x{03f5}+/i,utf
|
|
|
|
|
\x{0395}\x{03b5}\x{03f5}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{0398}+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/\x{03b8}+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/\x{03d1}+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
|
|
|
|
|
|
|
|
|
/\x{03f4}+/i,utf
|
|
|
|
|
\x{0398}\x{03b8}\x{03d1}\x{03f4}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{039a}+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
|
|
|
|
|
|
|
|
|
/\x{03ba}+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
|
|
|
|
|
|
|
|
|
/\x{03f0}+/i,utf
|
|
|
|
|
\x{039a}\x{03ba}\x{03f0}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03a0}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03c0}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03d6}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a0}\x{03c0}\x{03d6}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{03a1}+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
/\x{03c1}+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
/\x{03f1}+/i,utf
|
|
|
|
|
\x{03a1}\x{03c1}\x{03f1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{03a3}+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
|
|
|
|
|
|
|
|
|
/\x{03c2}+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
|
|
|
|
|
|
|
|
|
/\x{03c3}+/i,utf
|
|
|
|
|
\x{03A3}\x{03C2}\x{03C3}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03a6}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03c6}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{03d5}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{03a6}\x{03c6}\x{03d5}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{03c9}+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
|
|
|
|
|
|
|
|
|
/\x{03a9}+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
|
|
|
|
|
|
|
|
|
/\x{2126}+/i,utf
|
|
|
|
|
\x{03c9}\x{03a9}\x{2126}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{1e60}+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
|
|
|
|
|
|
|
|
|
/\x{1e61}+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
|
|
|
|
|
|
|
|
|
/\x{1e9b}+/i,utf
|
|
|
|
|
\x{1e60}\x{1e61}\x{1e9b}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{1e9e}+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
|
|
|
|
|
|
|
|
|
/\x{00df}+/i,utf
|
|
|
|
|
\x{1e9e}\x{00df}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{1f88}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1f88}\x{1f80}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{1f80}+/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{1f88}\x{1f80}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
2021-12-21 16:39:46 +01:00
|
|
|
|
# Perl 5.12.4 gets these wrong, but 5.15.3 is OK
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/\x{004b}+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
/\x{006b}+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
/\x{212a}+/i,utf
|
|
|
|
|
\x{004b}\x{006b}\x{212a}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/\x{0053}+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
|
|
|
|
|
|
|
|
|
/\x{0073}+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
|
|
|
|
|
|
|
|
|
/\x{017f}+/i,utf
|
|
|
|
|
\x{0053}\x{0073}\x{017f}
|
|
|
|
|
|
|
|
|
|
/^\p{Any}*\d{4}/utf
|
|
|
|
|
1234
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
123
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^\X*\w{4}/utf
|
|
|
|
|
1234
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
123
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^A\s+Z/utf,ucp
|
|
|
|
|
A\x{2005}Z
|
2014-08-06 19:33:14 +02:00
|
|
|
|
A\x{85}\x{2005}Z
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^A[\s]+Z/utf,ucp
|
|
|
|
|
A\x{2005}Z
|
2014-08-06 19:33:14 +02:00
|
|
|
|
A\x{85}\x{2005}Z
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:graph:]]+$/utf,ucp
|
|
|
|
|
Letter:ABC
|
|
|
|
|
Mark:\x{300}\x{1d172}\x{1d17b}
|
|
|
|
|
Number:9\x{660}
|
|
|
|
|
Punctuation:\x{66a},;
|
|
|
|
|
Symbol:\x{6de}<>\x{fffc}
|
|
|
|
|
Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
|
|
|
|
|
\x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
|
|
|
|
|
\x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
|
|
|
|
|
\x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
|
|
|
|
|
\x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
|
|
|
|
|
\x{feff}
|
|
|
|
|
\x{fff9}\x{fffa}\x{fffb}
|
|
|
|
|
\x{110bd}
|
|
|
|
|
\x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
|
|
|
|
|
\x{e0001}
|
|
|
|
|
\x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{09}
|
|
|
|
|
\x{0a}
|
|
|
|
|
\x{1D}
|
|
|
|
|
\x{20}
|
|
|
|
|
\x{85}
|
|
|
|
|
\x{a0}
|
|
|
|
|
\x{1680}
|
|
|
|
|
\x{2028}
|
|
|
|
|
\x{2029}
|
|
|
|
|
\x{202f}
|
|
|
|
|
\x{2065}
|
|
|
|
|
\x{3000}
|
|
|
|
|
\x{e0002}
|
|
|
|
|
\x{e001f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{e0080}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:print:]]+$/utf,ucp
|
|
|
|
|
Space: \x{a0}
|
|
|
|
|
\x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
|
|
|
|
|
\x{202f}\x{205f}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{3000}
|
|
|
|
|
Letter:ABC
|
|
|
|
|
Mark:\x{300}\x{1d172}\x{1d17b}
|
|
|
|
|
Number:9\x{660}
|
|
|
|
|
Punctuation:\x{66a},;
|
|
|
|
|
Symbol:\x{6de}<>\x{fffc}
|
|
|
|
|
Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
|
|
|
|
|
\x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
|
|
|
|
|
\x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
|
|
|
|
|
\x{202f}
|
|
|
|
|
\x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
|
|
|
|
|
\x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
|
|
|
|
|
\x{feff}
|
|
|
|
|
\x{fff9}\x{fffa}\x{fffb}
|
|
|
|
|
\x{110bd}
|
|
|
|
|
\x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
|
|
|
|
|
\x{e0001}
|
|
|
|
|
\x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{09}
|
|
|
|
|
\x{1D}
|
|
|
|
|
\x{85}
|
|
|
|
|
\x{2028}
|
|
|
|
|
\x{2029}
|
|
|
|
|
\x{2065}
|
|
|
|
|
\x{e0002}
|
|
|
|
|
\x{e001f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{e0080}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:punct:]]+$/utf,ucp
|
|
|
|
|
\$+<=>^`|~
|
|
|
|
|
!\"#%&'()*,-./:;?@[\\]_{}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{a1}\x{a7}
|
|
|
|
|
\x{37e}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcde
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/^[[:^graph:]]+$/utf,ucp
|
2014-08-06 19:33:14 +02:00
|
|
|
|
\x{09}\x{0a}\x{1D}\x{20}\x{85}\x{a0}\x{1680}
|
|
|
|
|
\x{2028}\x{2029}\x{202f}\x{2065}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{3000}\x{e0002}\x{e001f}\x{e0080}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
Letter:ABC
|
|
|
|
|
Mark:\x{300}\x{1d172}\x{1d17b}
|
|
|
|
|
Number:9\x{660}
|
|
|
|
|
Punctuation:\x{66a},;
|
|
|
|
|
Symbol:\x{6de}<>\x{fffc}
|
|
|
|
|
Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
|
|
|
|
|
\x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
|
|
|
|
|
\x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
|
|
|
|
|
\x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
|
|
|
|
|
\x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
|
|
|
|
|
\x{feff}
|
|
|
|
|
\x{fff9}\x{fffa}\x{fffb}
|
|
|
|
|
\x{110bd}
|
|
|
|
|
\x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
|
|
|
|
|
\x{e0001}
|
|
|
|
|
\x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
|
|
|
|
|
|
|
|
|
|
/^[[:^print:]]+$/utf,ucp
|
2014-08-06 19:33:14 +02:00
|
|
|
|
\x{09}\x{1D}\x{85}\x{2028}\x{2029}\x{2065}
|
|
|
|
|
\x{e0002}\x{e001f}\x{e0080}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
Space: \x{a0}
|
|
|
|
|
\x{1680}\x{2000}\x{2001}\x{2002}\x{2003}\x{2004}\x{2005}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{2006}\x{2007}\x{2008}\x{2009}\x{200a}
|
|
|
|
|
\x{202f}\x{205f}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\x{3000}
|
|
|
|
|
Letter:ABC
|
|
|
|
|
Mark:\x{300}\x{1d172}\x{1d17b}
|
|
|
|
|
Number:9\x{660}
|
|
|
|
|
Punctuation:\x{66a},;
|
|
|
|
|
Symbol:\x{6de}<>\x{fffc}
|
|
|
|
|
Cf-property:\x{ad}\x{600}\x{601}\x{602}\x{603}\x{604}\x{6dd}\x{70f}
|
|
|
|
|
\x{200b}\x{200c}\x{200d}\x{200e}\x{200f}
|
|
|
|
|
\x{202a}\x{202b}\x{202c}\x{202d}\x{202e}
|
|
|
|
|
\x{202f}
|
|
|
|
|
\x{2060}\x{2061}\x{2062}\x{2063}\x{2064}
|
|
|
|
|
\x{206a}\x{206b}\x{206c}\x{206d}\x{206e}\x{206f}
|
|
|
|
|
\x{feff}
|
|
|
|
|
\x{fff9}\x{fffa}\x{fffb}
|
|
|
|
|
\x{110bd}
|
|
|
|
|
\x{1d173}\x{1d174}\x{1d175}\x{1d176}\x{1d177}\x{1d178}\x{1d179}\x{1d17a}
|
|
|
|
|
\x{e0001}
|
|
|
|
|
\x{e0020}\x{e0030}\x{e0040}\x{e0050}\x{e0060}\x{e0070}\x{e007f}
|
|
|
|
|
|
|
|
|
|
/^[[:^punct:]]+$/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
abcde
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-07-25 18:35:51 +02:00
|
|
|
|
\$+<=>^`|~
|
|
|
|
|
!\"#%&'()*,-./:;?@[\\]_{}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{a1}\x{a7}
|
|
|
|
|
\x{37e}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
|
|
|
|
/[RST]+/i,utf,ucp
|
|
|
|
|
Ss\x{17f}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
/[R-T]+/i,utf,ucp
|
|
|
|
|
Ss\x{17f}
|
|
|
|
|
|
|
|
|
|
/[q-u]+/i,utf,ucp
|
|
|
|
|
Ss\x{17f}
|
|
|
|
|
|
|
|
|
|
/^s?c/im,utf
|
|
|
|
|
scat
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
|
|
|
|
# The next four tests are for repeated caseless back references when the
|
2014-08-27 18:59:56 +02:00
|
|
|
|
# code unit length of the matched text is different to that of the original
|
|
|
|
|
# group in the UTF-8 case.
|
|
|
|
|
|
|
|
|
|
/^(\x{23a})\1*(.)/i,utf
|
|
|
|
|
\x{23a}\x{23a}\x{23a}\x{23a}
|
|
|
|
|
\x{23a}\x{2c65}\x{2c65}\x{2c65}
|
|
|
|
|
\x{23a}\x{23a}\x{2c65}\x{23a}
|
|
|
|
|
|
|
|
|
|
/^(\x{23a})\1*(..)/i,utf
|
|
|
|
|
\x{23a}\x{2c65}\x{2c65}\x{2c65}
|
|
|
|
|
\x{23a}\x{23a}\x{2c65}\x{23a}
|
|
|
|
|
|
|
|
|
|
/^(\x{23a})\1*(...)/i,utf
|
|
|
|
|
\x{23a}\x{2c65}\x{2c65}\x{2c65}
|
|
|
|
|
\x{23a}\x{23a}\x{2c65}\x{23a}
|
|
|
|
|
|
|
|
|
|
/^(\x{23a})\1*(....)/i,utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-08-27 18:59:56 +02:00
|
|
|
|
\x{23a}\x{2c65}\x{2c65}\x{2c65}
|
|
|
|
|
\x{23a}\x{23a}\x{2c65}\x{23a}
|
2014-07-25 18:35:51 +02:00
|
|
|
|
|
2015-03-06 12:57:06 +01:00
|
|
|
|
/[A-`]/i,utf
|
|
|
|
|
abcdefghijklmno
|
|
|
|
|
|
2020-09-13 17:56:32 +02:00
|
|
|
|
/[\S\V\H]/utf
|
2015-03-25 20:26:27 +01:00
|
|
|
|
|
2015-08-05 11:04:01 +02:00
|
|
|
|
/[^\p{Any}]*+x/utf
|
|
|
|
|
x
|
|
|
|
|
|
2015-11-17 18:59:35 +01:00
|
|
|
|
/[[:punct:]]/utf,ucp
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{b4}
|
2015-11-17 18:59:35 +01:00
|
|
|
|
|
2015-11-20 17:55:36 +01:00
|
|
|
|
/[[:^ascii:]]/utf,ucp
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{200}
|
|
|
|
|
\x{300}
|
|
|
|
|
\x{37e}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2015-11-20 17:55:36 +01:00
|
|
|
|
aa
|
|
|
|
|
99
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2015-11-20 17:55:36 +01:00
|
|
|
|
/[[:^ascii:]\w]/utf,ucp
|
|
|
|
|
aa
|
|
|
|
|
99
|
|
|
|
|
gg
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{200}
|
|
|
|
|
\x{300}
|
|
|
|
|
\x{37e}
|
|
|
|
|
|
|
|
|
|
/[\w[:^ascii:]]/utf,ucp
|
|
|
|
|
aa
|
|
|
|
|
99
|
|
|
|
|
gg
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{200}
|
|
|
|
|
\x{300}
|
|
|
|
|
\x{37e}
|
|
|
|
|
|
|
|
|
|
/[^[:ascii:]\W]/utf,ucp
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{200}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2015-11-20 17:55:36 +01:00
|
|
|
|
aa
|
|
|
|
|
99
|
|
|
|
|
gg
|
|
|
|
|
\x{37e}
|
|
|
|
|
|
2015-11-27 18:14:51 +01:00
|
|
|
|
/[^[:^ascii:]\d]/utf,ucp
|
|
|
|
|
a
|
|
|
|
|
~
|
|
|
|
|
\a
|
|
|
|
|
\x{7f}
|
|
|
|
|
\= Expect no match
|
|
|
|
|
0
|
|
|
|
|
\x{389}
|
|
|
|
|
\x{20ac}
|
|
|
|
|
|
2016-10-18 13:22:40 +02:00
|
|
|
|
/(?=.*b)\pL/
|
|
|
|
|
11bb
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2016-10-18 13:22:40 +02:00
|
|
|
|
/(?(?=.*b)(?=.*b)\pL|.*c)/
|
|
|
|
|
11bb
|
|
|
|
|
|
2017-04-16 15:03:30 +02:00
|
|
|
|
/^\x{123}+?$/utf,no_auto_possess
|
|
|
|
|
\x{123}\x{123}\x{123}
|
|
|
|
|
|
|
|
|
|
/^\x{123}+?$/i,utf,no_auto_possess
|
|
|
|
|
\x{123}\x{122}\x{123}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\= Expect no match
|
2017-04-16 15:03:30 +02:00
|
|
|
|
\x{123}\x{124}\x{123}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-07-27 18:30:40 +02:00
|
|
|
|
/\N{U+1234}/utf
|
|
|
|
|
\x{1234}
|
|
|
|
|
|
|
|
|
|
/[\N{U+1234}]/utf
|
|
|
|
|
\x{1234}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-08-03 11:38:36 +02:00
|
|
|
|
# Test the full list of Unicode "Pattern White Space" characters that are to
|
|
|
|
|
# be ignored by /x. The pattern lines below may show up oddly in text editors
|
|
|
|
|
# or when listed to the screen. Note that characters such as U+2002, which are
|
|
|
|
|
# matched as space by \h and \v are *not* "Pattern White Space".
|
|
|
|
|
|
|
|
|
|
/A
B/x,utf
|
|
|
|
|
AB
|
|
|
|
|
|
|
|
|
|
/A B/x,utf
|
|
|
|
|
A\x{2002}B
|
|
|
|
|
\= Expect no match
|
|
|
|
|
AB
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
|
|
|
|
# -------
|
2017-04-16 15:03:30 +02:00
|
|
|
|
|
2018-08-17 16:45:35 +02:00
|
|
|
|
/[^\x{100}-\x{ffff}]*[\x80-\xff]/utf
|
|
|
|
|
\x{99}\x{99}\x{99}
|
|
|
|
|
|
|
|
|
|
/[^\x{100}-\x{ffff}ABC]*[\x80-\xff]/utf
|
|
|
|
|
\x{99}\x{99}\x{99}
|
|
|
|
|
|
|
|
|
|
/[^\x{100}-\x{ffff}]*[\x80-\xff]/i,utf
|
|
|
|
|
\x{99}\x{99}\x{99}
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-10-02 17:25:58 +02:00
|
|
|
|
# Script run tests
|
|
|
|
|
|
|
|
|
|
/^(*script_run:.{4})/utf
|
|
|
|
|
abcd Latin x4
|
|
|
|
|
\x{2e80}\x{2fa1d}\x{3041}\x{30a1} Han Han Hiragana Katakana
|
|
|
|
|
\x{3041}\x{30a1}\x{3007}\x{3007} Hiragana Katakana Han Han
|
|
|
|
|
\x{30a1}\x{3041}\x{3007}\x{3007} Katakana Hiragana Han Han
|
|
|
|
|
\x{1100}\x{2e80}\x{2e80}\x{1101} Hangul Han Han Hangul
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{3105} Han Bopomofo Han Bopomofo
|
|
|
|
|
\x{02ea}\x{2e80}\x{2e80}\x{3105} Bopomofo-Sk Han Han Bopomofo
|
|
|
|
|
\x{3105}\x{2e80}\x{2e80}\x{3105} Bopomofo Han Han Bopomofo
|
|
|
|
|
\x{0300}cd! Inherited Latin Latin Common
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{0391}12\x{03a9} Greek Common-digits Greek
|
2018-10-02 17:25:58 +02:00
|
|
|
|
\x{0400}12\x{fe2f} Cyrillic Common-digits Cyrillic
|
|
|
|
|
\x{0531}12\x{fb17} Armenian Common-digits Armenian
|
|
|
|
|
\x{0591}12\x{fb4f} Hebrew Common-digits Hebrew
|
|
|
|
|
\x{0600}12\x{1eef1} Arabic Common-digits Arabic
|
|
|
|
|
\x{0600}\x{0660}\x{0669}\x{1eef1} Arabic Arabic-digits Arabic
|
|
|
|
|
\x{0700}12\x{086a} Syriac Common-digits Syriac
|
|
|
|
|
\x{1200}12\x{ab2e} Ethiopic Common-digits Ethiopic
|
|
|
|
|
\x{1680}12\x{169c} Ogham Common-digits Ogham
|
|
|
|
|
\x{3041}12\x{3041} Hiragana Common-digits Hiragana
|
|
|
|
|
\x{0980}\x{09e6}\x{09e7}\x{0993} Bengali Bengali-digits Bengali
|
|
|
|
|
!cde Common Latin Latin Latin
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A..B Latin Common Common Latin
|
2018-10-02 17:25:58 +02:00
|
|
|
|
0abc Ascii-digit Latin Latin Latin
|
|
|
|
|
1\x{0700}\x{0700}\x{0700} Ascii-digit Syriac x 3
|
|
|
|
|
\x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
|
|
|
|
|
\= Expect no match
|
|
|
|
|
a\x{370}bcd Latin Greek Latin Latin
|
|
|
|
|
\x{1100}\x{02ea}\x{02ea}\x{02ea} Hangul Bopomofo x3
|
|
|
|
|
\x{02ea}\x{02ea}\x{02ea}\x{1100} Bopomofo x3 Hangul
|
|
|
|
|
\x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{0391}\x{09e6}\x{09e7}\x{03a9} Greek Bengali digits Greek
|
2018-10-02 17:25:58 +02:00
|
|
|
|
\x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
|
|
|
|
|
\x{0600}\x{0669}7\x{1eef1} Arabic Arabic-digit ascii-digit Arabic
|
2021-12-21 16:39:46 +01:00
|
|
|
|
A5\x{ff19}B Latin Common-ascii/notascii-digits Latin
|
2018-10-02 17:25:58 +02:00
|
|
|
|
\x{0300}cd\x{0391} Inherited Latin Latin Greek
|
|
|
|
|
!cd\x{0391} Common Latin Latin Greek
|
|
|
|
|
\x{1A80}\x{1A90}\x{1a40}\x{1a41} Tai Tham Hora digit, Tham digit, letters
|
|
|
|
|
A\x{1d7ce}\x{1d7ff}B Common fancy-common-2-sets-digits Common
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-10-02 17:25:58 +02:00
|
|
|
|
/^(*sr:.{4}|..)/utf
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
|
|
|
|
|
|
|
|
|
/^(*atomic_script_run:.{4}|..)/utf
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
|
|
|
|
|
|
|
|
|
/^(*asr:.*)/utf
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
|
|
|
|
|
|
|
|
|
/^(?>(*sr:.*))/utf
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
|
|
|
|
|
|
|
|
|
/^(*sr:.*)/utf
|
|
|
|
|
\x{2e80}\x{3105}\x{2e80}\x{30a1} Han Bopomofo Han Katakana
|
|
|
|
|
\x{10fffd}\x{10fffd}\x{10fffd} Private use (Unknown)
|
|
|
|
|
|
|
|
|
|
/^(*sr:\x{2e80}*)/utf
|
|
|
|
|
\x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
|
|
|
|
|
|
|
|
|
|
/^(*sr:\x{2e80}*)\x{2e80}/utf
|
|
|
|
|
\x{2e80}\x{2e80}\x{3105} Han Han Bopomofo
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-10-02 17:25:58 +02:00
|
|
|
|
/^(*sr:.*)Test/utf
|
|
|
|
|
Test script run on an empty string
|
|
|
|
|
|
|
|
|
|
/^(*sr:(.{2})){2}/utf
|
|
|
|
|
\x{0600}7\x{0669}\x{1eef1} Arabic ascii-digit Arabic-digit Arabic
|
|
|
|
|
\x{1A80}\x{1A80}\x{1a40}\x{1a41} Tai Tham Hora digits, letters
|
|
|
|
|
\x{1A80}\x{1a40}\x{1A90}\x{1a41} Tai Tham Hora digit, letter, Tham digit, letter
|
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-10-09 18:42:21 +02:00
|
|
|
|
/^(*sr:\S*)/utf
|
|
|
|
|
\x{1cf4}\x{20f0}\x{900}\x{11305} [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Gran
|
|
|
|
|
\x{1cf4}\x{20f0}\x{11305}\x{900} [Dev,Gran,Kan] [Dev,Gran,Lat] Gran Dev
|
|
|
|
|
\x{1cf4}\x{20f0}\x{900}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Dev Lat
|
|
|
|
|
\x{1cf4}\x{20f0}ABC [Dev,Gran,Kan] [Dev,Gran,Lat] Lat
|
|
|
|
|
\x{20f0}ABC [Dev,Gran,Lat] Lat
|
|
|
|
|
XYZ\x{20f0}ABC Lat [Dev,Gran,Lat] Lat
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{a36}\x{a33}\x{900} [Dev,...] [Dev,...] Dev
|
2018-10-09 18:42:21 +02:00
|
|
|
|
\x{3001}\x{2e80}\x{3041}\x{30a1} [Bopo, Han, etc] Han Hira Kata
|
|
|
|
|
\x{3001}\x{30a1}\x{2e80}\x{3041} [Bopo, Han, etc] Kata Han Hira
|
|
|
|
|
\x{3001}\x{3105}\x{2e80}\x{1101} [Bopo, Han, etc] Bopomofo Han Hangul
|
|
|
|
|
\x{3105}\x{3001}\x{2e80}\x{1101} Bopomofo [Bopo, Han, etc] Han Hangul
|
|
|
|
|
\x{3031}\x{3041}\x{30a1}\x{2e80} [Hira Kata] Hira Kata Han
|
|
|
|
|
\x{060c}\x{06d4}\x{0600}\x{10d00}\x{0700} [Arab Rohg Syrc Thaa] [Arab Rohg] Arab Rohg Syrc
|
|
|
|
|
\x{060c}\x{06d4}\x{0700}\x{0600}\x{10d00} [Arab Rohg Syrc Thaa] [Arab Rohg] Syrc Arab Rohg
|
2018-10-12 19:02:34 +02:00
|
|
|
|
\x{2e80}\x{3041}\x{3001}\x{3031}\x{2e80} Han Hira [Bopo, Han, etc] [Hira Kata] Han
|
2018-10-02 17:25:58 +02:00
|
|
|
|
|
2018-10-03 17:41:47 +02:00
|
|
|
|
/(?<!)(*sr:)/
|
|
|
|
|
|
|
|
|
|
/(?<!X(*sr:B)C)/
|
|
|
|
|
|
|
|
|
|
/(?<=abc(?=X(*sr:BCY)Z)XBCYZ)./
|
|
|
|
|
abcXBCYZ!
|
|
|
|
|
|
|
|
|
|
/(?<=abc(?=X(*sr:BXY)CCC)XBXYCCC)./
|
|
|
|
|
abcXBXYCCC!
|
|
|
|
|
|
2018-10-09 18:42:21 +02:00
|
|
|
|
/^(*sr:\S*)/utf
|
|
|
|
|
\x{10d00}\x{10d00}\x{06d4} Rohingya Rohingya Arabic-full-stop
|
|
|
|
|
\x{06d4}\x{10d00}\x{10d00} Arabic-full-stop Rohingya Rohingya
|
|
|
|
|
\x{10d00}\x{10d00}\x{0363} Rohingya Rohingya Inherited-extend-Latin
|
|
|
|
|
\x{0363}\x{10d00}\x{10d00} Inherited-extend-Latin Rohingya Rohingya
|
|
|
|
|
AB\x{0363} Latin Latin Inherited-extend-Latin
|
|
|
|
|
\x{0363}AB Inherited-extend-Latin Latin Latin
|
|
|
|
|
AB\x{1cf7} Latin Latin Common-extended-Beng
|
|
|
|
|
\x{1cf7}AB Common-extend-Beng Latin Latin
|
|
|
|
|
\x{1cf7}\x{0993} Common-extend-Beng Bengali
|
2018-10-14 16:27:16 +02:00
|
|
|
|
A\x{1abe}BC Test enclosing mark
|
|
|
|
|
\x{0370}\x{1abe}\x{0371} Which can occur with any script (Greek here)
|
2018-10-14 17:56:36 +02:00
|
|
|
|
\x{3001}\x{adf9}\x{3001} [.. Hangul ..] Hangul [.. Hangul ..]
|
|
|
|
|
\x{3400}\x{3001}XXX Han [Han etc.]
|
|
|
|
|
\x{3400}\x{1cd5} Han [Bengali Devanagari]
|
|
|
|
|
\x{ac01}\x{3400} Hangul [.. Hangul ..]
|
|
|
|
|
\x{ac01}\x{1cd5} Hangul [Bengali Devanagari]
|
|
|
|
|
\x{102e0}\x{06d4}\x{1ee4d} [Arabic Coptic] [Arab Rohingya] Arabic
|
|
|
|
|
\x{102e0}\x{06d4}\x{2cc9} [Arabic Coptic] [Arab Rohingya] Coptic
|
|
|
|
|
\x{102e0}\x{06d4}\x{10d30} [Arabic Coptic] [Arab Rohingya] Rohingya
|
2021-12-21 16:39:46 +01:00
|
|
|
|
|
2018-10-02 17:25:58 +02:00
|
|
|
|
# Test loop breaking for empty string match
|
|
|
|
|
|
|
|
|
|
/^(*sr:A|)*BCD/utf
|
|
|
|
|
AABCD
|
|
|
|
|
ABCD
|
2021-12-21 16:39:46 +01:00
|
|
|
|
BCD
|
|
|
|
|
|
|
|
|
|
# The use of (*ACCEPT) breaks script run checking
|
2018-10-02 17:25:58 +02:00
|
|
|
|
|
|
|
|
|
/^(*sr:.*(*ACCEPT)ZZ)/utf
|
|
|
|
|
\x{1100}\x{2e80}\x{3041}\x{1101} Hangul Han Hiragana Hangul
|
|
|
|
|
|
2021-12-21 16:39:46 +01:00
|
|
|
|
# -------
|
2018-08-17 16:45:35 +02:00
|
|
|
|
|
2019-02-06 19:11:36 +01:00
|
|
|
|
# Test group names containing non-ASCII letters and digits
|
|
|
|
|
|
|
|
|
|
/(?'ABáC'...)\g{ABáC}/utf
|
|
|
|
|
abcabcdefg
|
|
|
|
|
|
|
|
|
|
/(?'XʰABC'...)/utf
|
|
|
|
|
xyzpq
|
|
|
|
|
|
|
|
|
|
/(?'XאABC'...)/utf
|
|
|
|
|
12345
|
|
|
|
|
|
|
|
|
|
/(?'XᾈABC'...)/utf
|
|
|
|
|
%^&*(...
|
|
|
|
|
|
|
|
|
|
/(?'𐨐ABC'...)/utf
|
|
|
|
|
abcde
|
|
|
|
|
|
|
|
|
|
/^(?'אABC'...)(?&אABC)(?P=אABC)/utf
|
|
|
|
|
123123123456
|
|
|
|
|
|
|
|
|
|
/^(?'אABC'...)(?&אABC)/utf
|
|
|
|
|
123123123456
|
|
|
|
|
|
2019-05-13 18:26:17 +02:00
|
|
|
|
/\X*/
|
|
|
|
|
\xF3aaa\xE4\xEA\xEB\xFEa
|
|
|
|
|
|
2019-11-16 18:30:07 +01:00
|
|
|
|
/Я/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{42f}
|
|
|
|
|
\x{44f}
|
2019-11-16 18:30:07 +01:00
|
|
|
|
|
|
|
|
|
/(?=Я)/i,utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
\x{42f}
|
|
|
|
|
\x{44f}
|
2019-11-16 18:30:07 +01:00
|
|
|
|
|
2021-12-08 16:34:27 +01:00
|
|
|
|
# -----------------------------------------------------------------------------
|
2021-12-14 16:54:48 +01:00
|
|
|
|
# Tests for bidi control and bidi class properties.
|
2021-12-08 16:34:27 +01:00
|
|
|
|
|
|
|
|
|
/\p{ bidi_control }/utf
|
|
|
|
|
-->\x{202c}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidicontrol}+/utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
2021-12-10 17:32:10 +01:00
|
|
|
|
/\p{bidic}+?/utf
|
2021-12-08 16:34:27 +01:00
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
2021-12-10 17:32:10 +01:00
|
|
|
|
/\p{bidi_control}++/utf
|
2021-12-08 16:34:27 +01:00
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
2021-12-10 17:32:10 +01:00
|
|
|
|
/[\p{bidi_c}]/utf
|
2021-12-08 16:34:27 +01:00
|
|
|
|
-->\x{202c}<--
|
|
|
|
|
|
|
|
|
|
/[\p{bidicontrol}]+/utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/[\p{bidicontrol}]+?/utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/[\p{bidicontrol}]++/utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/[\p{bidicontrol}<>]+/utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/\P{bidicontrol}+/g,utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/\p{^bidicontrol}+/g,utf
|
|
|
|
|
-->\x{061c}\x{200e}\x{200f}\x{202a}\x{202b}\x{202c}\x{202d}<--
|
|
|
|
|
-->\x{2066}\x{2067}\x{2068}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class = al}/utf
|
|
|
|
|
-->\x{061D}<--
|
|
|
|
|
|
2021-12-10 17:32:10 +01:00
|
|
|
|
/\p{bc = al}+/utf
|
2021-12-08 16:34:27 +01:00
|
|
|
|
-->\x{061D}\x{061e}\x{061f}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi_class : AL}+?/utf
|
|
|
|
|
-->\x{061D}\x{061e}\x{061f}<--
|
|
|
|
|
|
|
|
|
|
/\p{Bidi_Class : AL}++/utf
|
|
|
|
|
-->\x{061D}\x{061e}\x{061f}<--
|
|
|
|
|
|
2021-12-10 17:32:10 +01:00
|
|
|
|
/\p{b_c = aN}+/utf
|
2021-12-08 16:34:27 +01:00
|
|
|
|
-->\x{061D}\x{0602}\x{0604}\x{061f}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class = B}+/utf
|
|
|
|
|
-->\x{0a}\x{0d}\x{01c}\x{01e}\x{085}\x{2029}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:BN}+/utf
|
|
|
|
|
-->\x{0}\x{08}\x{200c}\x{fffe}\x{dfffe}\x{10ffff}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:cs}+/utf
|
|
|
|
|
-->,.\x{060c}\x{ff1a}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:En}+/utf
|
|
|
|
|
-->09\x{b2}\x{2074}\x{1fbf9}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:es}+/utf
|
|
|
|
|
==>+-\x{207a}\x{ff0d}<==
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:et}+/utf
|
|
|
|
|
-->#\{24}%\x{a2}\x{A838}\x{1e2ff}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:FSI}+/utf
|
|
|
|
|
-->\x{2068}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:L}+/utf
|
|
|
|
|
-->ABC<--
|
|
|
|
|
|
|
|
|
|
/\P{bidi class:L}+/utf
|
|
|
|
|
-->ABC<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:LRE}+\p{bidiclass=lri}*\p{bidiclass:lro}/utf
|
|
|
|
|
-->\x{202a}\x{2066}\x{202d}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:NSM}+/utf
|
|
|
|
|
-->\x{9bc}\x{a71}\x{e31}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:ON}+/utf
|
|
|
|
|
-->\x{21}'()*;@\x{384}\x{2039}<=-
|
|
|
|
|
|
|
|
|
|
/\p{bidiclass:pdf}\p{bidiclass:pdi}/utf
|
|
|
|
|
-->\x{202c}\x{2069}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:R}+/utf
|
|
|
|
|
-->\x{590}\x{5c6}\x{200f}\x{10805}<--
|
|
|
|
|
|
|
|
|
|
/\p{bidi class:RLE}+\p{bidi class:RLI}*\p{bidi class:RLO}+/utf
|
2021-12-21 16:39:46 +01:00
|
|
|
|
-->\x{202b}\x{2067}\x{202e}<--
|
|
|
|
|
|
2021-12-08 16:34:27 +01:00
|
|
|
|
/\p{bidi class:S}+\p{bidiclass:WS}+/utf
|
|
|
|
|
-->\x{9}\x{b}\x{1f} \x{c} \x{2000} \x{3000}<--
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
2021-12-28 16:10:12 +01:00
|
|
|
|
/[\p{taml}\p{sc:ugar}]+/utf
|
|
|
|
|
\x{0b82}\x{10380}
|
|
|
|
|
|
2014-07-25 18:35:51 +02:00
|
|
|
|
# End of testinput4
|