|
1
2
.NET正则表达式引擎不支持POSIX字符类。你有
参见其他posix字符类 例子 映射(它们可能无法完全相同但至少类似地工作): POSIX .NET Description
[:alpha:] \p{L} Any letters (\p{L} matches only those from the BMP plane)
[:alnum:] [\p{L}\p{N}] Any letters or digits
[:digit:] \p{N} or \d Any digits (there is also a [:d:] POSIX variation)
[:space:] \s or \p{Z} Any whitespace
[:blank:] [\p{Zs}\t] Any horizontal whitespace
除此之外,还有一些扩展到 POSIX .NET Description [:ascii:] [\x00-\x7E] ASCII character set [:xdigit:] [0-9a-fA-F] Chars that are used to define hex values 此外,你必须在图案中转义文字点。 此外,始终使用与您计划用于模式的regex引擎兼容的web regex测试仪。
|
|
|
DotFX · RegEx捕获关键字前但括号后的所有内容 1 年前 |
|
|
Andrus · 如何在sql中查找第二个匹配项 1 年前 |
|
|
iato · 确保正则表达式不从命名材料中的数字中提取 1 年前 |
|
|
vr8ce · 非成对标记中特定字符的正则表达式 1 年前 |
|
|
MARTIN · 交换第一个和最后一个单词,反转所有中间的字符 1 年前 |
|
|
Carsten · 使用最近的搜索模式更改文本块 1 年前 |