Normalize telephone numbers script

Suggestions, feature requests and bug reports.
Post Reply
Robotgo2
Posts: 2
Joined: Sep 13th, ’17, 20:08

Post by Robotgo2 » Dec 15th, ’15, 23:57

Hey there,

Love the program, thanks so much. I work on databases (mainly Salesforce), and Fastkeys has made my work MUCH less tedious.

One suggestion-- I would love a script for turning telephone numbers from this: "123.456.7890" or "123-456-7890" or "123 456 7890" into this "(123) 456-7890"

Thanks!
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Dec 16th, ’15, 11:11

This should work:

Code: Select all

Send ^c
Sleep 100
if b:=RegExReplace(Clipboard, "(\d{3})[.-\s](\d{3})[.-\s](\d{4})", "($1) $2-$3")
   SendInput % b
Set it as a shortcut (Type: Command). Select a given phone number and press the shortcut keys.
Robotgo2
Posts: 2
Joined: Sep 13th, ’17, 20:08

Post by Robotgo2 » Jan 15th, ’16, 21:59

You're awesome.
Post Reply