d versus [0-9] in .NET regular expressions
本问题已经有最佳答案,请猛点这里访问。
我经常看到在.NET正则表达式中使用
或者没有区别,这只是一个很好的实践,因为其他regex引擎?
我认为答案也在相关参考文献中:
\d matches any decimal digit. It is equivalent to the \p{Nd} regular
expression pattern, which includes the standard decimal digits 0-9 as
well as the decimal digits of a number of other character sets.
因此,