判断电话号码运营商
来源:互联网 发布:剑三当战炮姐脸型数据 编辑:程序博客网 时间:2024/05/01 04:55
c#中 正则表达式的应用。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Text.RegularExpressions;namespace IsPhone{ public partial class Form1 : Form { public Form1() { InitializeComponent(); button1.BackColor = Color.FromArgb(255, 0, 0); button1.ForeColor = Color.FromArgb(0, 0, 255); } private void button1_Click(object sender, EventArgs e) { string chainaMobile = @"^(13[4-9]|15[0|1|2|7|8|9]|18[7|8])\d{8}$"; string chinaUnicome= @"^(13[0-2]|15[5|6]|18[5|6])\d{8}$"; string chinaTelecom = @"^(13[3]|15[3]|18[0|9])\d{8}$"; if (Regex.IsMatch(textBox1.Text, chainaMobile)) { MessageBox.Show("ChainaMobile number."); } else if (Regex.IsMatch(textBox1.Text, chinaUnicome)) { MessageBox.Show("ChinaUnicome number."); } else if (Regex.IsMatch(textBox1.Text, chinaTelecom)) { MessageBox.Show("ChinaTelecom number."); } else { MessageBox.Show("This is a empty number."); } } }}
- 判断电话号码运营商
- js正则表达式判断电话号码是哪个运营商
- iPhone 判断运营商
- IOS代码判断运营商
- ios 判断网络运营商
- android 手机号码运营商判断
- iOS判断运营商类型
- 判断号码运营商
- java判断手机号运营商
- Android:判断手机运营商
- 判断电话号码是否合法
- 判断手机号码,电话号码函数
- android 判断是不是电话号码
- js判断电话号码
- 判断电话号码是否合法
- Android判断电话号码合法性
- 判断电话号码是否正确
- 正则表达式判断电话号码
- C++静态成员函数小结(转)
- cvResize缩放“边缘检测”的图像后,图像变得模糊,如何解决?
- 计算几何
- Failed to execute goal org.apache.maven.plugins Compilation failure 非法字符: \65279
- BackupManager的使用与解析
- 判断电话号码运营商
- 面试准备(常用函数和数据结构)freopen (在程序调试时从文本输入,程序结果放在文本中)
- nginx作为反向代理服务器完成负载均衡
- Getting and installing the PEAR package manager
- log4j和web.xml配置webAppRootKey 的问题
- VS2003"无法启动调试 没有正确安装调试器"的解决方法
- 03-swing_JComponent类
- opcv测试2-1
- msp430写ADS1115