.SYNOPSIS
This function is designed to format a mixed string of 1-16 digit numbers as a phone number.
.DESCRIPTION
This function will take a string of numbers and letters or special characters and output a formatted
phone number object. All non-number characters are stripped out and replaced in the proper place
.PARAMETER InputNumber
This is the only parameter. It is the number or string to be formatted
.EXAMPLE
format-phone -InputNumber +12349215237
.EXAMPLE
(format-phone -InputNumber 1-2349215237).PrettyNumber
.EXAMPLE
(format-phone -InputNumber 6432215237).AreaCode
.INPUTS
String
.OUTPUTS
PSCustomObject
.NOTES
Author: Zachary Bonjour
Website: https://www.linkedin.com/in/zachary-bonjour/
Report issues or bugs at https://github.com/zpbonjour/ps-phone-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
Formats any 1-16 digit mixed string to a phone number object
License
zpbonjour/ps-phone-formatter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Formats any 1-16 digit mixed string to a phone number object
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published