mobileExact constant

String const mobileExact

Regex of exact mobile.

china mobile: 134(0-8), 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 165, 172, 178, 182, 183, 184, 187, 188, 195, 197, 198

china unicom: 130, 131, 132, 145, 155, 156, 166, 167, 175, 176, 185, 186, 196

china telecom: 133, 149, 153, 162, 173, 177, 180, 181, 189, 190, 191, 199

china broadcasting: 192

global star: 1349

virtual operator: 170, 171

Implementation

static const String mobileExact =
    "^((13[0-9])|(14[579])|(15[0-35-9])|(16[2567])|(17[0-35-8])|(18[0-9])|(19[0-35-9]))\\d{8}\$";