|
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测试仪。
|
|
|
A B · C#Excel自动调整列避免长文本时出错 1 年前 |
|
|
Megrez7 · C#ToArray转换合并为一行,导致数组元素更改 1 年前 |
|
Aycon · 在工厂方法中释放部分创建的对象的正确方法是什么? 1 年前 |
|
|
Sei · Avalonia/WPF将路由器传递到控制模板 1 年前 |