验证手机号码和座机 [英] Validate a mobile number and landline

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

问题描述

如何使用Javascript或验证控件来验证Moblie号码和印度固定电话号码?

How to validate a Moblie number and Indian Landline number using Javascript or validation control?

推荐答案

通过JavaScript或正则表达式验证器进行正则表达式!

此处查看它们. [如何:在ASP中使用正则表达式来限制输入.NET [^ ]
Regular Expressions via JavaScript or Regular Expression Validators!

Have a look at what they are here.[^]

There are various online free tools to prepare/check your regular expression. Pick one. prepare your regex and apply on the textbox onchange/onblur event of textbox using Javascript or Regular Expression Validators.

Have a look here for second option if thats confusing for you: How To: Use Regular Expressions to Constrain Input in ASP.NET[^]


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

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