We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e7e24e commit efb65caCopy full SHA for efb65ca
docs/regex.md
@@ -464,14 +464,17 @@ regex.test('ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ') // true
464
// 匹配所有空格
465
\p{White_Space}
466
467
+// 匹配十六进制字符
468
+\p{Hex_Digit}
469
+
470
// 匹配各种文字的所有字母,等同于 Unicode 版的 \w
471
[\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\p{Join_Control}]
472
473
// 匹配各种文字的所有非字母的字符,等同于 Unicode 版的 \W
474
[^\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\p{Join_Control}]
475
476
// 匹配 Emoji
-/\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu
477
+/\p{Extended_Pictographic}/u
478
479
// 匹配所有的箭头字符
480
const regexArrows = /^\p{Block=Arrows}+$/u;
0 commit comments