Do you know how to format phone numbers?

Updated by Tiago Araújo [SSW] 5 months ago. See history

123
No component provided for introEmbed

4XXXXXXXXX

❌ Figure: Bad example - Hard to read

(4XX) XXX-XXXX

❌ Figure: Bad example - Readable but missing international format

+61 (4XX) XXX-XXX

✅ Figure: OK example - International format and readable but brackets/dashes aren't necessary

+61 4XX XXX XXXX

✅ Figure: Good example - Nice and clean with spaces

Note:

In Australia, mobile numbers are in the format +61 4XX XXX XXX

In China, mobile numbers are in the format +86 1XX XXXX XXXX

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star