\+?(\d+)?[ \.-]?\(?(\d{3})\)?[ \.-]?(\d{3})[ \.-]?(\d{4})
This regex matches most NA phone number formats without extensions, including
250-370-8517
604-851-4700
+12503708517
+1232503708517
#!/usr/bin/env bash | |
# Prerequisites | |
# | |
# Download the 1Password CLI tool | |
# | |
# brew cask install 1password-cli | |
# | |
# Before using this script, you'll need to authenticate the 1Password | |
# CLI for the first time. Use the following command, replacing |