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测试仪。
|
Robert King · Unity C#语法问题-转换位置 1 年前 |
JBryanB · 如何从基本抽象类访问类属性 1 年前 |
law · 检查答案按钮的输入字符串格式不正确 2 年前 |
i_sniff_ket · 在unity之外使用unity类 2 年前 |