在Visual Studio中将数字与正则表达式匹配 [英] Match a digit in Visual Studio with regular expressions

查看:108
本文介绍了在Visual Studio中将数字与正则表达式匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中匹配数字?

How do I match a digit in Visual Studio?

我的第一个猜测是\d,但是它对我不起作用.

My first guess is \d, but it is not working for me.

第二,Visual Studio中是否有特殊字符列表?

Second, is there a list of special characters in Visual Studio?

推荐答案

根据还有:z匹配一个或多个数字,即用来匹配整数.

There's also :z which matches one or more digits, i.e. used to match an integer.

是的, VS正则表达式很奇怪.

这篇关于在Visual Studio中将数字与正则表达式匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆