Converts a String to a US formatted phone number, as +1 (123) 456-7890x2. Expects a 7 digit or 10+ digit phone number. The extension is optional, and will be any digits found after an x. This allows for extensions listed as ext, x, or extension.
Returns a String formatted as a phone number, such as +1 (123) 456-7890x2, or null if the input was null
Version | Description |
---|---|
5.5.26a | Available in all editions. |