Phone number Regular expression (support mobile number, 3-4-bit area code, 7-8-bit live number, 1-4 poorly transposition number) ((\d{11}) |^ ((\d{7,8}) | ( \D{4}|\D{3})-(\d{7,8}) | (\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}) | (\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})) match format: 11-digit mobile number 3-4-digit area code, 7-8-digit live number, 1-4 poorly transposition machine number such as: 12345678901, 1234-12345678-1234 "^\d+ $ "//nonnegative integer (positive integer + 0)" ^[0-9]*[1-9][0-9]*$ "//Positive integer" ^ ((-\d+) | ( 0+)) $ "//non-positive integer (negative integer + 0)" ^-[0-9]*[1-9][0-9]*$ "//Negative integer" ^-?\d+$ "//Integer" ^\d+ (\.\d+)? $ "//non-negative floating-point number (positive floating point + 0)" ^ ([0-9]+\. [0-9]*[1-9][0-9]*)| ([0-9]*[1-9][0-9]*\. [0-9]+)| ([0-9]*[1-9][0-9]*) $ "//positive floating point" ^ ((-\d+ (\.\d+)?) | (0+ (\.0+)?)) $ "//non-positive floating point number (negative floating point + 0)" ^ (-([0-9]+\. [0-9]*[1-9][0-9]*)| ([0-9]*[1-9][0-9]*\. [0-9]+)| ([0-9]*[1-9][0-9]*)) $ "//negative floating point" ^ (-?\d+) (\.\d+)? $ "//floating-point" ^[a-za-z]+$ "///the string consisting of 26 English letters" ^[a-z]+$ "//String" ^[a-z]+$ "consisting of 26 English letters in uppercase A string consisting of 26 letters in lowercase "^[a-za-z0-9]+$"//A string consisting of a number and 26 English letters "^\w+$"//A string consisting of a number, 26 letters, or an underscore ^[\w-]+ (\.[ \w-]+) *@[\w-]+ (\.[ \w-]+) +$ "//email address" ^[a-za-z]+://(\w+ (-\w+)*) (\. (\w+ (-\w+) *))* (\?\s*)? $ "//url/^13\d{9}$/gi mobile phone number regular expression public static bool Isvalidmobileno (string Mobileno) {const string regpattern = @" ^ (130|131|132|133|134|135|136|137|138|139) \d{8}$ "; Return Regex.IsMatch (Mobileno, Regpattern); Regular expression--Verify mobile phone number: 13[0-9]{9} with 86 or +86 in front of the phone number: ^ ((\+86) | (86))? () \d{9}$ phone number and mobile phone number simultaneously verified: (^ (\d{3,4}-)? \d{7,8}) $| (13[0-9]{9}) Extract the network link in the information: (h| H) (r| R) (e| E) (f| F*= *(' | ')? (\w|\\|\/|\.) + (' | ' | *|>)? Message address in Extract information: \w+ ([-+.] \w+)*@\w+ ([-.] \w+) *\.\w+ ([-.] \w+) * Extract information from the image link: (s| S) (r| R) (c| C*= *(' | ')? (\w|\\|\/|\.) + (' | ' | *|>)? Extract the IP address in the information: (\d+) \. (\d+) \. (\d+) \. (\d+) Chinese mobile phone number in extracting information: (86)*0*13\D{9} Extract information in China fixed phone number: (\ (\d{3,4}\) |\d{3,4}-|\s)? \d{8} Extract the Chinese phone number (including mobile and landline) in the information:(\ (\d{3,4}\) |\d{3,4}-|\s)? \d{7,14 The Chinese zip code in the Extract information: [1-9]{1} (\d+) {5} Extract information from the Chinese identity card number: \d{18}|\d{15} Extract the Integer in the information: \d+ extract the floating-point numbers in the information (that is, decimals): (-?\d*) \.? \d+ extract any number from the information: (-?\d*) (\.\d+)? Extract the Chinese string from the information: [\u4e00-\u9fa5]* extract the Double-byte string in the message (Kanji): [^\x00-\xff]* Phone and phone union var reg =/(\d{11}) |^ ((\d{7,8}) | ( \D{4}|\D{3})-(\d{7,8}) | (\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}) | (\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})) $/;11-bit phone var reg =/^1\d{10}$/; Date date-time division seconds//datatype: "/^ (([0-9]{3}[1-9]| [0-9]{2}[1-9][0-9]{1}| [0-9]{1}[1-9][0-9]{2}| [1-9][0-9]{3})-(((0[13578]|1[ Geneva])-(0[1-9]| [ A][0-9]|3[ on]))| ((0[469]|11)-(0[1-9]| [ A][0-9]|30)) | (02-(0[1-9]| [1][0-9]|2[0-8]))))| ((([0-9]{2}) (0[ -]| [2468][048]| [13579][ -])| ((0[ -]| [2468][048]| [3579][ -]) ( -02-29)) \\s+ ([0-1]? [0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/",
Regular expressions for mobile phone numbers and phone numbers