Hi Experts,
I have string which is a phone number, I want to remove the 1(country code) in the number if it exist and then format it. I don't know if there is connector to use or expression if any and how to write an expression for this. Please help.
Example:
if the input is 13214325432, I would like to have it as 321-432-5432.
If the input is 3214325432, I would like to have it as 321-432-5432.
For now the first character will be either 1 or nothing as shown above since we deal with only US.
Thanks in advance for your help.