regexMobileExact constant

String const regexMobileExact

Exact mobile number regex.

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, 198

China Unicom: 130, 131, 132, 145, 155, 156, 166, 167, 171, 175, 176, 185, 186

China Telecom: 133, 153, 162, 173, 177, 180, 181, 189, 199, 191

Global Star: 1349

Virtual operator: 170

Implementation

static const String regexMobileExact =
    '^((13[0-9])|(14[57])|(15[0-35-9])|(16[2567])|(17[01235-8])|(18[0-9])|(19[1589]))\\d{8}\$';