Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from .. import Provider as PhoneNumberProvider 

2 

3 

4class Provider(PhoneNumberProvider): 

5 formats = ( 

6 # Standard 10-digit phone number formats 

7 '##########', 

8 '##########', 

9 '###-###-####', 

10 '###-###-####', 

11 # Optional 10-digit local phone number format 

12 '(###)###-####', 

13 '(###)###-####', 

14 # Non-standard 10-digit phone number format 

15 '###.###.####', 

16 '###.###.####', 

17 # Standard 10-digit phone number format with extensions 

18 '###-###-####x###', 

19 '###-###-####x####', 

20 '###-###-####x#####', 

21 # Optional 10-digit local phone number format with extensions 

22 '(###)###-####x###', 

23 '(###)###-####x####', 

24 '(###)###-####x#####', 

25 # Non-standard 10-digit phone number format with extensions 

26 '###.###.####x###', 

27 '###.###.####x####', 

28 '###.###.####x#####', 

29 # Standard 11-digit phone number format 

30 '+1-###-###-####', 

31 '001-###-###-####', 

32 # Standard 11-digit phone number format with extensions 

33 '+1-###-###-####x###', 

34 '+1-###-###-####x####', 

35 '+1-###-###-####x#####', 

36 '001-###-###-####x###', 

37 '001-###-###-####x####', 

38 '001-###-###-####x#####', 

39 )