How do I match a digit in Visual Studio?
My first guess is \d
, but it is not working for me.
Second, is there a list of special characters in Visual Studio?
Here are the Regular Expressions that it recognizes. Read this great article on the Visual Studio Regular Expressions by Jeff Atwood.
(source: codinghorror.com)
According to the MSDN docs for Visual Studio's regular expressions, it's :d
.
There's also :z
which matches one or more digits, i.e. used to match an integer.
And yes, VS regexes are bizarre.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With