Is Chinese Mobile Number - CSharp System.Globalization

CSharp examples for System.Globalization:Chinese

Description

Is Chinese Mobile Number

Demo Code


using System.Text.RegularExpressions;
using System.Text;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using System;/*w  w  w  .j  a v  a2 s .  c  om*/

public class Main{
        public static bool IsChineseMobileNumber(string input)
        {
            return Regex.IsMatch(input, "^(13[0-9]|15[0|3|6|8|9])[0-9]{8}$");
        }
}

Related Tutorials