Title |
Test
Find
Mobile numbers in China
|
Expression |
^(\+86)(13[0-9]|145|147|15[0-3,5-9]|18[0,2,5-9])(\d{8})$ |
Description |
This expression is pretty simple. It validates for mobile phone numbers in mainland China. I needed phone numbers in a certain format for use with an SMS gateway. The formatting is rather strict.
Area codes taken from here: http://en.wikipedia.org/wiki/Telephone_numbers_in_China#Mobile_phones |
Matches |
+8613812345678 | +8613012345678 | +8618212345678 |
Non-Matches |
+8614012345678 | +8615412345678 | +8619012345678 |
Author |
Rating:
Scott Crooks
|
Source |
http://en.wikipedia.org/wiki/Telephone_numbers_in_China#Mobile_phones |
Your Rating |
|