Jump to content
edalzell

Format phone number string

Recommended Posts

I often copy phone numbers out of web pages/emails, etc and need to paste them in a specific format (1-234-567-8903).

 

Is there a workflow that takes what's selected (or on the clipboard), formats and puts it back on the clipboard?

Share this post


Link to post

I often copy phone numbers out of web pages/emails, etc and need to paste them in a specific format (1-234-567-8903).

 

Is there a workflow that takes what's selected (or on the clipboard), formats and puts it back on the clipboard?

 

I don't know of one off the top of my head but this shouldn't be too complicated. Would they always be in a specific starting format or would it vary?

Share this post


Link to post

I don't know of one off the top of my head but this shouldn't be too complicated. Would they always be in a specific starting format or would it vary?

Varying.

Easiest would be to strip out all formatting then add the 1 (if necessary) then add the formatting.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...