如何验证传真号码 [英] How do I validate FAX number

查看:314
本文介绍了如何验证传真号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在C#windows窗体应用程序中验证传真号码3.5



我尝试了什么:



我不知道如何验证传真号码

I am not able to validate FAX number in C# windows form application 3.5

What I have tried:

I have no idea how to validate FAX number

推荐答案

如果传真号码是固定格式,那么常规怎么样表达?看看这里 Regex.Match方法(字符串)(System.Text.RegularExpressions ) [ ^ ]和 Regex.IsMatch方法(字符串)(系统) .Text.RegularExpressions) [ ^ ]示例
if the fax number is a fixed format, how about a Regular Expression ? have a look here Regex.Match Method (String) (System.Text.RegularExpressions)[^] and here Regex.IsMatch Method (String) (System.Text.RegularExpressions)[^] for examples


正则表达式是验证输入并根据某种复杂格式进行检查的工具。

这是RegEx文档的链接:

perlre - perldoc.perl.org [ ^ ]

以下是帮助构建RegEx的工具的链接并调试它们:

.NET Regex Tester - Regex Storm [ ^ ]

Expresso正则表达式工具 [ ^ ]

这个显示RegEx是一个很好的图表,它真的很有帮助了解RegEx的作用:

Debuggex:在线可视正则表达式测试器。 JavaScript,Python和PCRE。 [ ^ ]
Regular Expressions is the tool to validate an input and check it against some complex format.
Here is a link to RegEx documentation:
perlre - perldoc.perl.org[^]
Here is links to tools to help build RegEx and debug them:
.NET Regex Tester - Regex Storm[^]
Expresso Regular Expression Tool[^]
This one show you the RegEx as a nice graph which is really helpful to understand what is doing a RegEx:
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.[^]


这篇关于如何验证传真号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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